linux/drivers/pinctrl/nomadik
Arnd Bergmann caee57ec71 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: 5e81e0a091 ("pinctrl: nomadik: use BIT() with offsets consequently")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-05-09 11:58:57 +02:00
..
Kconfig pinctrl: fix allmodconfig noise 2015-04-15 10:02:42 +02:00
Makefile
pinctrl-ab8500.c
pinctrl-ab8505.c pinctrl: Spelling s/reseved/reserved/ 2015-06-01 15:49:53 +02:00
pinctrl-ab8540.c
pinctrl-ab9540.c
pinctrl-abx500.c pinctrl: nomadic: Use devm_pinctrl_register() for pinctrl registration 2016-04-21 00:02:42 +02:00
pinctrl-abx500.h
pinctrl-nomadik-db8500.c pinctrl/ARM: move GPIO and pinctrl deps to device tree 2015-07-27 15:04:40 +02:00
pinctrl-nomadik-db8540.c pinctrl/ARM: move GPIO and pinctrl deps to device tree 2015-07-27 15:04:40 +02:00
pinctrl-nomadik-stn8815.c pinctrl: nomadik: stn8815 CLCD alternate functions 2016-01-28 12:26:34 +01:00
pinctrl-nomadik.c pinctrl: nomadik: hide nmk_gpio_get_mode when unused 2016-05-09 11:58:57 +02:00
pinctrl-nomadik.h pinctrl/ARM: move GPIO and pinctrl deps to device tree 2015-07-27 15:04:40 +02:00