Commit 53056f59 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Linus Walleij

pinctrl: bcm: add OF dependencies

Building without CONFIG_OF gives us these warnings for the broadcom
pinctrl drivers:

drivers/pinctrl/bcm/pinctrl-nsp-mux.c:356:20: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function)
drivers/pinctrl/bcm/pinctrl-cygnus-mux.c:739:20: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function)

The function is only available when CONFIG_OF is set, so we should add
a Kconfig dependency for both drivers.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: cc4fa83f ("pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC")
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8bf0bd41
...@@ -60,6 +60,7 @@ config PINCTRL_IPROC_GPIO ...@@ -60,6 +60,7 @@ config PINCTRL_IPROC_GPIO
config PINCTRL_CYGNUS_MUX config PINCTRL_CYGNUS_MUX
bool "Broadcom Cygnus IOMUX driver" bool "Broadcom Cygnus IOMUX driver"
depends on (ARCH_BCM_CYGNUS || COMPILE_TEST) depends on (ARCH_BCM_CYGNUS || COMPILE_TEST)
depends on OF
select PINMUX select PINMUX
select GENERIC_PINCONF select GENERIC_PINCONF
default ARCH_BCM_CYGNUS default ARCH_BCM_CYGNUS
...@@ -103,6 +104,7 @@ config PINCTRL_NS2_MUX ...@@ -103,6 +104,7 @@ config PINCTRL_NS2_MUX
config PINCTRL_NSP_MUX config PINCTRL_NSP_MUX
bool "Broadcom NSP IOMUX driver" bool "Broadcom NSP IOMUX driver"
depends on (ARCH_BCM_NSP || COMPILE_TEST) depends on (ARCH_BCM_NSP || COMPILE_TEST)
depends on OF
select PINMUX select PINMUX
select GENERIC_PINCONF select GENERIC_PINCONF
default ARCH_BCM_NSP default ARCH_BCM_NSP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment