]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
gpio: adnp: Depend on OF_GPIO instead of OF
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 1 Nov 2012 10:22:11 +0000 (11:22 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Nov 2012 21:22:23 +0000 (22:22 +0100)
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.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig

index f11d8e3b4041b780c8c9f9ec154c3f0878025ec6..47150f5ded04ea4df13c14434fc3fa553141abaf 100644 (file)
@@ -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