gpio: xra1403: select REGMAP_SPI
authorArnd Bergmann <arnd@arndb.de>
Tue, 30 May 2017 11:13:17 +0000 (13:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 31 May 2017 00:13:24 +0000 (02:13 +0200)
Without the regmap code, we get a link error:

drivers/gpio/built-in.o: In function `xra1403_probe':
(.text+0x132e0): undefined reference to `__devm_regmap_init_spi'

Fixes: 5704520d7880 ("gpio: xra1403: Add EXAR XRA1403 SPI GPIO expander driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig

index 89e805fc5eba0c133151661e8bbceec5949e1d5f..ee0bb47bf02e5dd5e84949f1d09ed61119403452 100644 (file)
@@ -1229,6 +1229,7 @@ config GPIO_PISOSR
 
 config GPIO_XRA1403
        tristate "EXAR XRA1403 16-bit GPIO expander"
+       select REGMAP_SPI
        help
          GPIO driver for EXAR XRA1403 16-bit SPI-based GPIO expander.