Input: twl6040-vibra - fix compiler warning
authorRandy Dunlap <rdunlap@xenotime.net>
Fri, 9 Sep 2011 17:15:29 +0000 (10:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Sep 2011 17:16:21 +0000 (10:16 -0700)
Fix warning from Geert's build summary emails by changing "if" to
"ifdef". Thsi should fix the following:

drivers/input/misc/twl6040-vibra.c:231:5: warning: "CONFIG_PM_SLEEP" is not defined

Builds cleanly with CONFIG_PM_SLEEP enabled or disabled.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/twl6040-vibra.c

index c43002e7ec7286bdf5650f3ce402210c5fefd2f0..23855e12a30b362ef124b3c83b404d59c732c11d 100644 (file)
@@ -228,7 +228,7 @@ static void twl6040_vibra_close(struct input_dev *input)
        mutex_unlock(&info->mutex);
 }
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int twl6040_vibra_suspend(struct device *dev)
 {
        struct platform_device *pdev = to_platform_device(dev);