From: Dmitry Torokhov Date: Mon, 4 Jul 2011 13:34:48 +0000 (-0700) Subject: Input: sh_keysc - fix compile warning X-Git-Tag: v3.1-rc1~38^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cca8edfd2ec2a34d9f50f593bc753bb11e1bc1f5;p=profile%2Fivi%2Fkernel-x86-ivi.git Input: sh_keysc - fix compile warning 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/sh_keysc.c b/drivers/input/keyboard/sh_keysc.c index 6876700..934aeb583 100644 --- a/drivers/input/keyboard/sh_keysc.c +++ b/drivers/input/keyboard/sh_keysc.c @@ -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);