[PATCH 1/2] pinctrl: cygnus-mux: add missing dependency on CONFIG_OF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a build error when CONFIG_OF is disabled (tested with
COMPILE_TEST enabled):

drivers/pinctrl/bcm/pinctrl-cygnus-mux.c:739:20: error:
‘pinconf_generic_dt_node_to_map_group’ undeclared here (not in a
function)
  .dt_node_to_map = pinconf_generic_dt_node_to_map_group,

This commit adds a dependency on CONFIG_OF for PINCTRL_CYGNUS_MUX
Kconfig symbol to fix this problem.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@xxxxxxxxxxxx>
---
 drivers/pinctrl/bcm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/bcm/Kconfig b/drivers/pinctrl/bcm/Kconfig
index 7967c67..6351028 100644
--- a/drivers/pinctrl/bcm/Kconfig
+++ b/drivers/pinctrl/bcm/Kconfig
@@ -59,7 +59,7 @@ config PINCTRL_IPROC_GPIO
 
 config PINCTRL_CYGNUS_MUX
 	bool "Broadcom Cygnus IOMUX driver"
-	depends on (ARCH_BCM_CYGNUS || COMPILE_TEST)
+	depends on OF && (ARCH_BCM_CYGNUS || COMPILE_TEST)
 	select PINMUX
 	select GENERIC_PINCONF
 	default ARCH_BCM_CYGNUS
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux