Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arnd Bergmann and committed by
Linus Walleij
665dff99 073570dc

+1
+1
drivers/gpio/Kconfig
··· 1229 1229 1230 1230 config GPIO_XRA1403 1231 1231 tristate "EXAR XRA1403 16-bit GPIO expander" 1232 + select REGMAP_SPI 1232 1233 help 1233 1234 GPIO driver for EXAR XRA1403 16-bit SPI-based GPIO expander. 1234 1235