diff mbox

Input: matrix_keypad - depend on CONFIG_PM_SLEEP for suspend/resume functions

Message ID 1275171835-13246-1-git-send-email-tobias.doerffel@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tobias Doerffel May 29, 2010, 10:23 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c
index b443e08..139a3bc 100644
--- a/drivers/input/keyboard/matrix_keypad.c
+++ b/drivers/input/keyboard/matrix_keypad.c
@@ -215,7 +215,7 @@  static void matrix_keypad_stop(struct input_dev *dev)
 	disable_row_irqs(keypad);
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int matrix_keypad_suspend(struct device *dev)
 {
 	struct platform_device *pdev = to_platform_device(dev);
@@ -440,7 +440,7 @@  static struct platform_driver matrix_keypad_driver = {
 	.driver		= {
 		.name	= "matrix-keypad",
 		.owner	= THIS_MODULE,
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 		.pm	= &matrix_keypad_pm_ops,
 #endif
 	},