diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-02-02 09:05:22 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-02 09:05:22 +0100 |
commit | fb7899b1f0b748ef966071f5dc23c59ebd57d08f (patch) | |
tree | 2f13f9d8607871a60334608524e8b4e9447f5309 /drivers/input/keyboard/davinci_keyscan.c | |
parent | spi/dw_spi: Fix dw_spi_mmio to depend on HAVE_CLK (diff) | |
parent | Linux 2.6.33-rc6 (diff) | |
download | linux-fb7899b1f0b748ef966071f5dc23c59ebd57d08f.tar.xz linux-fb7899b1f0b748ef966071f5dc23c59ebd57d08f.zip |
Merge commit 'v2.6.33-rc6' into secretlab/next-spi
Diffstat (limited to 'drivers/input/keyboard/davinci_keyscan.c')
-rw-r--r-- | drivers/input/keyboard/davinci_keyscan.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/keyboard/davinci_keyscan.c b/drivers/input/keyboard/davinci_keyscan.c index 6e52d855f637..d410d7a52f1d 100644 --- a/drivers/input/keyboard/davinci_keyscan.c +++ b/drivers/input/keyboard/davinci_keyscan.c @@ -174,6 +174,14 @@ static int __init davinci_ks_probe(struct platform_device *pdev) struct davinci_ks_platform_data *pdata = pdev->dev.platform_data; int error, i; + if (pdata->device_enable) { + error = pdata->device_enable(dev); + if (error < 0) { + dev_dbg(dev, "device enable function failed\n"); + return error; + } + } + if (!pdata->keymap) { dev_dbg(dev, "no keymap from pdata\n"); return -EINVAL; |