gpio: mcp23s08: Select REGMAP/REGMAP_I2C to fix build error
authorAxel Lin <axel.lin@ingics.com>
Thu, 2 Feb 2017 10:13:06 +0000 (18:13 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 4 Feb 2017 20:25:28 +0000 (21:25 +0100)
This driver now using devm_regmap_init/devm_regmap_init_i2c, so it needs
to select REGMAP/REGMAP_I2C accordingly.

Fixes: ("3d84fdb3f0b5 gpio: mcp23s08: use regmap")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig

index 2d7739222cdbd2ab41ae5eb5450e57ac59be7a01..28e621900a14a4a426413898e759e104df54c15c 100644 (file)
@@ -1213,6 +1213,8 @@ config GPIO_MCP23S08
        tristate "Microchip MCP23xxx I/O expander"
        depends on OF_GPIO
        select GPIOLIB_IRQCHIP
+       select REGMAP_I2C if I2C
+       select REGMAP if SPI_MASTER
        help
          SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
          I/O expanders.