summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/snvs_pwrkey.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-02 09:11:16 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-03-02 09:40:03 -0800
commit7ffae9909bddb0367052133fe74ec5c9898c27b4 (patch)
tree4535c3f42e06a619a46f2fe9cbcc9412fa511b04 /drivers/input/keyboard/snvs_pwrkey.c
parent0581ce09fd2c976125a20791268d7206db156d2f (diff)
downloadtalos-op-linux-7ffae9909bddb0367052133fe74ec5c9898c27b4.tar.gz
talos-op-linux-7ffae9909bddb0367052133fe74ec5c9898c27b4.zip
Input: spear-keyboard - use __maybe_unused to hide pm functions
The spear keyboard driver uses #ifdef CONFIG_PM to hide its power management functions, but then uses references from SIMPLE_DEV_PM_OPS that are only present if both CONFIG_PM and CONFIG_PM_SLEEP are set, resulting in a warning about unused functions: drivers/input/keyboard/spear-keyboard.c:292:12: error: 'spear_kbd_suspend' defined but not used [-Werror=unused-function] drivers/input/keyboard/spear-keyboard.c:345:12: error: 'spear_kbd_resume' defined but not used [-Werror=unused-function] This removes the #ifdef and instead uses a __maybe_unused annotation. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/snvs_pwrkey.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud