From: Randy Dunlap Date: Fri, 9 Sep 2011 17:15:29 +0000 (-0700) Subject: Input: twl6040-vibra - fix compiler warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b6b1e927cec6b472578402f07f5befa79a96818d;p=linux.git Input: twl6040-vibra - fix compiler warning 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/twl6040-vibra.c b/drivers/input/misc/twl6040-vibra.c index c43002e7ec728..23855e12a30b3 100644 --- a/drivers/input/misc/twl6040-vibra.c +++ b/drivers/input/misc/twl6040-vibra.c @@ -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);