aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/stm32/pinctrl-stm32.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-05-03 17:26:53 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-05-09 11:58:57 +0200
commitcaee57ec71e1a0cb50b6028c706cfe541dcb080a (patch)
treea6d2e273ac2e4384591319a073da25a72dba724d /drivers/pinctrl/stm32/pinctrl-stm32.c
parentpinctrl: ns2: rename pinctrl_utils_dt_free_map (diff)
downloadlinux-dev-caee57ec71e1a0cb50b6028c706cfe541dcb080a.tar.xz
linux-dev-caee57ec71e1a0cb50b6028c706cfe541dcb080a.zip
pinctrl: nomadik: hide nmk_gpio_get_mode when unused
nmk_gpio_get_mode is only used in one place, and that is conditionally compiled if DEBUG_FS is enabled. A recent cleanup has marked the definition 'static', which now leads to a warning: drivers/pinctrl/nomadik/pinctrl-nomadik.c:614:12: error: 'nmk_gpio_get_mode' defined but not used [-Werror=unused-function] static int nmk_gpio_get_mode(struct nmk_gpio_chip *nmk_chip, int offset) ^~~~~~~~~~~~~~~~~ Moving the function itself inside the #ifdef shuts it up again. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 5e81e0a0913c ("pinctrl: nomadik: use BIT() with offsets consequently") Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/stm32/pinctrl-stm32.c')
0 files changed, 0 insertions, 0 deletions