Input: twl4030-vibra - use proper guard for PM methods
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Feb 2012 08:51:40 +0000 (00:51 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Feb 2012 08:54:29 +0000 (00:54 -0800)
commitf3761c0779b62276b5bf84532a81d5dc49bd721f
treefca99792f6dc66b9f55ec12dbf02d5841547f03b
parent02dfc496800dfaf17b650256642f3df86653fe97
Input: twl4030-vibra - use proper guard for PM methods

On m68k:

drivers/input/misc/twl4030-vibra.c:175:5: warning: "CONFIG_PM" is not
defined

We should use #ifdef instead of #if and also check CONFIG_PM_SLEEP
instead of CONFIG_PM.

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