]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Tue, 18 Jun 2013 16:42:01 +0000 (18:42 +0200)
commitf5066c2c5b12e483d1d6aea99962f9e653303771
tree2e30340ed004b3f81b3998e1e0b3ca541fd9d261
parentfa1f56171a98db3a69dbd4f88dcdf7178cc4db48
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