summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbraham Arce <x0066660@ti.com>2011-04-07 08:44:09 +0100
committerAndy Green <andy.green@linaro.org>2011-04-07 08:44:09 +0100
commit4f6d47148ebd0941684d87a373b77ece93e875c9 (patch)
tree4c0c7b982aff3e5467f49c2f41162f04aab11543
parent2d6c4f3f4a07c77a29f9a5b4d00680d8369ebd71 (diff)
OMAP4: Keyboard pm runtime
Enable pm runtime in driver Signed-off-by: Abraham Arce <x0066660@ti.com> Signed-off-by: Sebastien Jan <s-jan@ti.com>
-rw-r--r--drivers/input/keyboard/omap4-keypad.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c
index 45bd0977d00..4d48b96bb75 100644
--- a/drivers/input/keyboard/omap4-keypad.c
+++ b/drivers/input/keyboard/omap4-keypad.c
@@ -29,6 +29,7 @@
#include <linux/io.h>
#include <linux/input.h>
#include <linux/slab.h>
+#include <linux/pm_runtime.h>
#include <plat/omap4-keypad.h>
@@ -239,6 +240,9 @@ static int __devinit omap4_keypad_probe(struct platform_device *pdev)
matrix_keypad_build_keymap(pdata->keymap_data, row_shift,
input_dev->keycode, input_dev->keybit);
+ pm_runtime_enable(&pdev->dev);
+ pm_runtime_get_sync(&pdev->dev);
+
omap4_keypad_config(keypad_data);
error = request_irq(keypad_data->irq, omap4_keypad_interrupt,