]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Input: twl4030-vibra - really switch from #if to #ifdef
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 11 Mar 2012 23:02:06 +0000 (16:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 13 Mar 2012 05:18:54 +0000 (22:18 -0700)
The commit f3761c0779b62276b5bf84532a81d5dc49bd721f claimed to change
#if to #ifdef to avoid compiler warnings when CONFIG_PM_SLEEP is not
defined, but failed at that.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/twl4030-vibra.c

index f3bc4189a7ba136154d418b49028cccb680fb970..fc0ed9b43424c705796f16bf43939b5f340e7bf4 100644 (file)
@@ -172,7 +172,7 @@ static void twl4030_vibra_close(struct input_dev *input)
 }
 
 /*** Module ***/
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int twl4030_vibra_suspend(struct device *dev)
 {
        struct platform_device *pdev = to_platform_device(dev);