瀏覽代碼

gpio: xra1403: select REGMAP_SPI

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>
Arnd Bergmann 8 年之前
父節點
當前提交
665dff997e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/gpio/Kconfig

+ 1 - 0
drivers/gpio/Kconfig

@@ -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.