diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-13 17:13:46 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-13 19:39:59 +0100 |
commit | bf4d7be57ba9040347065f48a60f895a254f6e28 (patch) | |
tree | c22e60b6a340ea8912a5c337961b9bb9181339d7 /drivers/pinctrl/pinconf.h | |
parent | 53ded8191e81507da0786ac45152eebb68d25d0c (diff) | |
download | talos-op-linux-bf4d7be57ba9040347065f48a60f895a254f6e28.tar.gz talos-op-linux-bf4d7be57ba9040347065f48a60f895a254f6e28.zip |
pinctrl: generic: Fix compilation error
The function definition of pinconf_generic_dump_config is defined
under CONFIG_DEBUG_FS macro. Define the declaration too under this macro.
Without this patch we get the following build error:
drivers/built-in.o: In function `pcs_pinconf_config_dbg_show':
drivers/pinctrl/pinctrl-single.c:726: undefined reference to
`pinconf_generic_dump_config'
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf.h')
-rw-r--r-- | drivers/pinctrl/pinconf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h index e3ed8cb072a5..bfda73d64eed 100644 --- a/drivers/pinctrl/pinconf.h +++ b/drivers/pinctrl/pinconf.h @@ -90,7 +90,7 @@ static inline void pinconf_init_device_debugfs(struct dentry *devroot, * pin config. */ -#ifdef CONFIG_GENERIC_PINCONF +#if defined(CONFIG_GENERIC_PINCONF) && defined(CONFIG_DEBUG_FS) void pinconf_generic_dump_pin(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned pin); |