diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2011-09-09 13:15:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-09-09 13:16:21 -0400 |
commit | b6b1e927cec6b472578402f07f5befa79a96818d (patch) | |
tree | 8019d70a88bcc3b1dc69b01312bd8e02ca893df0 | |
parent | 95439cbad134de58d9ea256e37fd13fbcdc87d08 (diff) |
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 <rdunlap@xenotime.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/input/misc/twl6040-vibra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/twl6040-vibra.c b/drivers/input/misc/twl6040-vibra.c index c43002e7ec72..23855e12a30b 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) | |||
228 | mutex_unlock(&info->mutex); | 228 | mutex_unlock(&info->mutex); |
229 | } | 229 | } |
230 | 230 | ||
231 | #if CONFIG_PM_SLEEP | 231 | #ifdef CONFIG_PM_SLEEP |
232 | static int twl6040_vibra_suspend(struct device *dev) | 232 | static int twl6040_vibra_suspend(struct device *dev) |
233 | { | 233 | { |
234 | struct platform_device *pdev = to_platform_device(dev); | 234 | struct platform_device *pdev = to_platform_device(dev); |