Skip to contentSkip to conversation

gpio: adnp: Depend on OF_GPIO instead of OF

PATCH In review Thierry Reding 2 participants 2 messages Nov 1, 2012 – Nov 4, 2012 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: adnp: Depend on OF_GPIO instead of OF

The driver accesses the of_node field of struct gpio_chip, which is only available if OF_GPIO is selected. This solves a build issue on SPARC which conflicts with OF_GPIO and therefore does not provide this field.

---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
index d055cee..c856f9e 100644
@@ -466,7 +466,7 @@ config GPIO_ADP5588_IRQ
 
 config GPIO_ADNP
 	tristate "Avionic Design N-bit GPIO expander"
-	depends on I2C && OF
+	depends on I2C && OF_GPIO
 	help
 	  This option enables support for N GPIOs found on Avionic Design
 	  I2C GPIO expanders. The register space will be extended by powers
Signature · 1 line
1.8.0
#1 lore raw
Quoted 5 lines · Thierry Reding

The driver accesses the of_node field of struct gpio_chip, which is only available if OF_GPIO is selected. This solves a build issue on SPARC which conflicts with OF_GPIO and therefore does not provide this field.

Thanks! Patch applied.

Yours,
Linus Walleij