summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/davinci_keyscan.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-02-02 09:05:22 +0100
committerGrant Likely <grant.likely@secretlab.ca>2010-02-02 09:05:22 +0100
commitfb7899b1f0b748ef966071f5dc23c59ebd57d08f (patch)
tree2f13f9d8607871a60334608524e8b4e9447f5309 /drivers/input/keyboard/davinci_keyscan.c
parentspi/dw_spi: Fix dw_spi_mmio to depend on HAVE_CLK (diff)
parentLinux 2.6.33-rc6 (diff)
downloadlinux-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.c8
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;