input: cros_ec_keyb_clear_keyboard() depends on CONFIG_PM_SLEEP
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 8 May 2013 21:41:18 +0000 (23:41 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 23 Jun 2013 13:55:14 +0000 (15:55 +0200)
commit03832aa87f81341d68f5f952c5418984dfb10139
tree2e30340ed004b3f81b3998e1e0b3ca541fd9d261
parent80ebf14546647e581e10e2cb14425a3621e782e0
input: cros_ec_keyb_clear_keyboard() depends on CONFIG_PM_SLEEP

If CONFIG_PM_SLEEP is not set:

drivers/input/keyboard/cros_ec_keyb.c:211: warning: ‘cros_ec_keyb_clear_keyboard’ defined but not used

Move the definition of cros_ec_keyb_clear_keyboard() inside the section
protected by #ifdef CONFIG_PM_SLEEP to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cros_ec_keyb.c