Skip to contentSkip to conversation

gpio: xra1403: select REGMAP_SPI

PATCH In review Arnd Bergmann 3 participants 3 messages May 30, 2017 – May 31, 2017 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -0
index 66d1f353ca73..238fc231081a 100644
@@ -1241,6 +1241,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.
 
Signature · 1 line
2.9.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Arnd Bergmann [mailto:[email protected]]
Sent: 30 May 2017 14:13
To: Linus Walleij <[email protected]>
Cc: Han, Nandor (GE Healthcare) <[email protected]>; Arnd Bergmann <[email protected]>; [email protected]; [email protected]
Subject: EXT: [PATCH] gpio: xra1403: select REGMAP_SPI

Quoted 7 lines

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")
Quoted 18 lines
---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -1
index 66d1f353ca73..238fc231081a 100644
@@ -1241,6 +1241,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.
 
--

2.9.0

#2 lore raw
In reply to Arnd Bergmann
Quoted 7 lines · Arnd Bergmann

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")

Patch applied.

Yours,
Linus Walleij