Input: sh_keysc - fix compile warning
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 4 Jul 2011 13:34:48 +0000 (06:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 4 Jul 2011 14:12:26 +0000 (07:12 -0700)
The "#if" above should really be an "#ifdef" to avoid this warning:

  CC      drivers/input/keyboard/sh_keysc.o
drivers/input/keyboard/sh_keysc.c:294:5: warning: "CONFIG_PM_SLEEP" is
not defined

Reported-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/sh_keysc.c

index 6876700a4469d191446a20a9c81dc2606279b9d2..934aeb583b3035205e8c141573cbce685c812db9 100644 (file)
@@ -291,7 +291,7 @@ static int __devexit sh_keysc_remove(struct platform_device *pdev)
        return 0;
 }
 
-#if CONFIG_PM_SLEEP
+#ifdef CONFIG_PM_SLEEP
 static int sh_keysc_suspend(struct device *dev)
 {
        struct platform_device *pdev = to_platform_device(dev);