diff options
author | Amelie Delaunay <amelie.delaunay@st.com> | 2019-05-10 15:39:18 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-05-10 16:09:56 +0100 |
commit | 9af2de7657f5a52f9e15aebb6f9348f9b8f250a6 (patch) | |
tree | 145fcbe7ceaf52979796af130659c85740b1eacd /drivers/pinctrl/Kconfig | |
parent | 1490d9f841b186664f9d3ca213dcfa4464a60680 (diff) |
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/Kconfig')
-rw-r--r-- | drivers/pinctrl/Kconfig | 2 |
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 |