diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-01-25 14:14:30 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-29 23:10:30 +0100 |
commit | 0fafd50e4b41c06bf6be8dead87075e88ef25303 (patch) | |
tree | 0d87936a648dcce30fc4f28cccf3205b723537d7 /drivers/pinctrl | |
parent | 312b00e510af60175b2935404a1927e6480e91e7 (diff) | |
download | linux-3.10-0fafd50e4b41c06bf6be8dead87075e88ef25303.tar.gz linux-3.10-0fafd50e4b41c06bf6be8dead87075e88ef25303.tar.bz2 linux-3.10-0fafd50e4b41c06bf6be8dead87075e88ef25303.zip |
pinctrl: nomadik: nmk_prcm_gpiocr_get_mode may be unused
nmk_prcm_gpiocr_get_mode is only needed for debugfs output at
the moment, which can be compile-time disabled. Marking
the function __maybe_unused still gives us compile-time
coverage, but avoids a gcc warning.
Without this patch, building nhk8815_defconfig results in:
drivers/pinctrl/pinctrl-nomadik.c:676:12: warning: 'nmk_prcm_gpiocr_get_mode' defined but not used [-Wunused-function]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jean-Nicolas Graux <jean-nicolas.graux@stericsson.com>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-nomadik.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index 1bb16ffb4e4..5767b18ebdf 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c @@ -676,7 +676,7 @@ int nmk_gpio_set_mode(int gpio, int gpio_mode) } EXPORT_SYMBOL(nmk_gpio_set_mode); -static int nmk_prcm_gpiocr_get_mode(struct pinctrl_dev *pctldev, int gpio) +static int __maybe_unused nmk_prcm_gpiocr_get_mode(struct pinctrl_dev *pctldev, int gpio) { int i; u16 reg; |