提交 9af2de76 编写于 作者: A Amelie Delaunay 提交者: Lee Jones

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: 1490d9f8 ("pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver")
Reported-by: Nkbuild test robot <lkp@intel.com>
Signed-off-by: NAmelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 1490d9f8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册