Prevent build failure when the selected variant does not support GPIO32.
Signed-off-by: Baruch Siach <[email protected]>
---
Chris, Max,
I assume that the gpio tree is the natural path for this patch as it carries
the driver already. Please ack the arch/xtensa part.
---
arch/xtensa/Kconfig | 3 +++
drivers/gpio/Kconfig | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 65ffc09..6bd4ee3 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -74,16 +74,19 @@ choice
config XTENSA_VARIANT_FSF
bool "fsf - default (not generic) configuration"
select MMU
+ select HAVE_XTENSA_GPIO32
config XTENSA_VARIANT_DC232B
bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
select MMU
+ select HAVE_XTENSA_GPIO32
help
This variant refers to Tensilica's Diamond 232L Standard core Rev.B
(LE).
config XTENSA_VARIANT_DC233C
bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
select MMU
+ select HAVE_XTENSA_GPIO32
help
This variant refers to Tensilica's Diamond 233L Standard core Rev.C
(LE).
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 43c45ea..766accb 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -290,9 +290,13 @@ config GPIO_XILINX
help
Say yes here to support the Xilinx FPGA GPIO device
+config HAVE_XTENSA_GPIO32
+ bool
+
config GPIO_XTENSA
bool "Xtensa GPIO32 support"
depends on XTENSA
+ depends on HAVE_XTENSA_GPIO32
depends on !SMP
help
Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
--
1.8.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html