gpio: mcp23s08: make driver depend on OF_GPIO
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Sep 2016 21:13:20 +0000 (23:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Sep 2016 22:42:57 +0000 (00:42 +0200)
commit60f749f8e4cfdfffa5f29c966050ed680eeedac2
treea65d3efc8fafff7ce15206afdfd6b689a41653c6
parentc6c864993d9a20f8d7cacb4feaac5c46a2f2e4db
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>
drivers/gpio/Kconfig
drivers/gpio/gpio-mcp23s08.c