diff mbox

Input: twl4030-vibra - depend on CONFIG_PM_SLEEP for suspend/resume functions

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

Commit Message

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

Patch

diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c
index 4f9b2af..3600bca 100644
--- a/drivers/input/misc/twl4030-vibra.c
+++ b/drivers/input/misc/twl4030-vibra.c
@@ -172,7 +172,7 @@  static void twl4030_vibra_close(struct input_dev *input)
 }
 
 /*** Module ***/
-#if CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int twl4030_vibra_suspend(struct device *dev)
 {
 	struct platform_device *pdev = to_platform_device(dev);
@@ -273,7 +273,7 @@  static struct platform_driver twl4030_vibra_driver = {
 	.driver		= {
 		.name	= "twl4030_codec_vibra",
 		.owner	= THIS_MODULE,
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 		.pm	= &twl4030_vibra_pm_ops,
 #endif
 	},