diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-09-07 23:13:20 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-09-08 00:42:57 +0200 |
commit | 60f749f8e4cfdfffa5f29c966050ed680eeedac2 (patch) | |
tree | a65d3efc8fafff7ce15206afdfd6b689a41653c6 /drivers/gpio/Kconfig | |
parent | c6c864993d9a20f8d7cacb4feaac5c46a2f2e4db (diff) | |
download | talos-obmc-linux-60f749f8e4cfdfffa5f29c966050ed680eeedac2.tar.gz talos-obmc-linux-60f749f8e4cfdfffa5f29c966050ed680eeedac2.zip |
gpio: mcp23s08: make driver depend on OF_GPIO
The MCP23S08 driver certainly accesses fields inside the
struct gpio_chip that are only available under CONFIG_OF_GPIO
not just CONFIG_OF, so update the Kconfig and driver to reflect
this.
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: Phil Reid <preid@electromag.com.au>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r-- | drivers/gpio/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 66a94103798b..24caedb00a7a 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -1131,6 +1131,7 @@ menu "SPI or I2C GPIO expanders" config GPIO_MCP23S08 tristate "Microchip MCP23xxx I/O expander" + depends on OF_GPIO select GPIOLIB_IRQCHIP help SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017 |