summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2019-05-10 15:39:18 +0200
committerLee Jones <lee.jones@linaro.org>2019-05-10 17:09:56 +0200
commit9af2de7657f5a52f9e15aebb6f9348f9b8f250a6 (patch)
tree145fcbe7ceaf52979796af130659c85740b1eacd /drivers/pinctrl
parentpinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver (diff)
downloadlinux-9af2de7657f5a52f9e15aebb6f9348f9b8f250a6.tar.xz
linux-9af2de7657f5a52f9e15aebb6f9348f9b8f250a6.zip
pinctrl: Kconfig: Fix STMFX GPIO expander Pinctrl/GPIO driver dependencies
module_i2c_driver and pinconf_generic_dt_node_to_map_pin are undeclared if CONFIG_I2C and CONFIG_OF are not enabled. Fixes: 1490d9f841b1 ("pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index ab2eab71b046..1f380ca65578 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -267,6 +267,8 @@ config PINCTRL_ST
config PINCTRL_STMFX
tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
+ depends on I2C
+ depends on OF || COMPILE_TEST
select GENERIC_PINCONF
select GPIOLIB_IRQCHIP
select MFD_STMFX