]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
pinctrl: pinconf: fix compilation error if PINCONF is not selected
authorViresh Kumar <viresh.kumar@st.com>
Mon, 16 Apr 2012 08:52:34 +0000 (14:22 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Apr 2012 11:53:12 +0000 (13:53 +0200)
When we compile pinctrl layer for platforms without CONFIG_PINCONF, we get
following compilation errors:

drivers/built-in.o: In function `pinctrl_show':
linux-2.6/drivers/pinctrl/core.c:1116: undefined
reference to `pinconf_show_setting'
drivers/built-in.o: In function `pinctrl_maps_show':
linux-2.6/drivers/pinctrl/core.c:1071: undefined
reference to `pinconf_show_map'
drivers/built-in.o: In function `pinctrl_init_device_debugfs':
linux-2.6/drivers/pinctrl/core.c:1224: undefined
reference to `pinconf_init_device_debugfs'
make[1]: *** [.tmp_vmlinux1] Error 1

This patch fixes this.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf.h

index 32b8354d2510603c95faf36a0064b9495effbd6d..e3ed8cb072a5a4dd410015c66e3202ded90dd49c 100644 (file)
@@ -58,7 +58,7 @@ static inline int pinconf_apply_setting(struct pinctrl_setting const *setting)
 
 #endif
 
-#if defined(CONFIG_PINMUX) && defined(CONFIG_DEBUG_FS)
+#if defined(CONFIG_PINCONF) && defined(CONFIG_DEBUG_FS)
 
 void pinconf_show_map(struct seq_file *s, struct pinctrl_map const *map);
 void pinconf_show_setting(struct seq_file *s,