summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDong Aisheng <dong.aisheng@linaro.org>2012-04-05 17:07:23 +0800
committerLinus Walleij <linus.walleij@linaro.org>2012-04-11 09:30:49 +0200
commit89e004e78ff6317520d35bdb0d0174893ab49f17 (patch)
treebba46d61c1ed59376b06f89260b7566b582bee61 /include
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff)
downloadlinux-89e004e78ff6317520d35bdb0d0174893ab49f17.tar.gz
linux-89e004e78ff6317520d35bdb0d0174893ab49f17.tar.bz2
linux-89e004e78ff6317520d35bdb0d0174893ab49f17.zip
pinctrl: fix compile error if not select PINMUX support
The pinctrl_register_mappings is defined in core.c, so change the dependent macro from CONFIG_MUX to CONFIG_PINCTRL. The compile error message is: drivers/pinctrl/core.c:886: error: redefinition of 'pinctrl_register_mappings' include/linux/pinctrl/machine.h:160: note: previous definition of 'pinctrl_register_mappings' was here make[2]: *** [drivers/pinctrl/core.o] Error 1 make[1]: *** [drivers/pinctrl] Error 2 make: *** [drivers] Error 2 Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pinctrl/machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h
index fee4349364f7..d32eb8ccba84 100644
--- a/include/linux/pinctrl/machine.h
+++ b/include/linux/pinctrl/machine.h
@@ -148,7 +148,7 @@ struct pinctrl_map {
#define PIN_MAP_CONFIGS_GROUP_HOG_DEFAULT(dev, grp, cfgs) \
PIN_MAP_CONFIGS_GROUP(dev, PINCTRL_STATE_DEFAULT, dev, grp, cfgs)
-#ifdef CONFIG_PINMUX
+#ifdef CONFIG_PINCTRL
extern int pinctrl_register_mappings(struct pinctrl_map const *map,
unsigned num_maps);