Skip to contentSkip to conversation

mfd: cs42l43: add REGMAP_IRQ requirement

PATCH In review Randy Dunlap 2 participants 2 messages Sep 18, 2023 – Sep 19, 2023 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: cs42l43: add REGMAP_IRQ requirement

The cs42l43 core uses devm_regmap_add_irq_chip(), so add REGMAP_IRQ to what the core driver selects in order to provide this API. This fixes a build error:

aarch64-linux-ld: drivers/mfd/cs42l43.o: in function `cs42l43_boot_work':
cs42l43.c:(.text+0x19d4): undefined reference to `devm_regmap_add_irq_chip'

Fixes ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver")
Cc Charles Keepax <[email protected]>
Cc James Schulman <[email protected]>
Cc David Rhodes <[email protected]>
Cc Richard Fitzgerald <[email protected]>
Cc Lee Jones <[email protected]>
---
 drivers/mfd/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/mfd/Kconfig +1 -0
diff -- a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
@@ -241,6 +241,7 @@ config MFD_CS42L43
 	tristate
 	select MFD_CORE
 	select REGMAP
+	select REGMAP_IRQ
 
 config MFD_CS42L43_I2C
 	tristate "Cirrus Logic CS42L43 (I2C)"
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Randy Dunlap

The cs42l43 core uses devm_regmap_add_irq_chip(), so add REGMAP_IRQ to what the core driver selects in order to provide this API. This fixes a build error:

aarch64-linux-ld: drivers/mfd/cs42l43.o: in function `cs42l43_boot_work':
cs42l43.c:(.text+0x19d4): undefined reference to `devm_regmap_add_irq_chip'

Fixes ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver")
Cc Charles Keepax <[email protected]>
Cc James Schulman <[email protected]>
Cc David Rhodes <[email protected]>
Cc Richard Fitzgerald <[email protected]>
Cc Lee Jones <[email protected]>
Quoted 1 line

---

Someone already sent a fix for this, that is awaiting review:

https://lore.kernel.org/lkml/[email protected]/

But just incase this one gets picked up:

Thanks,
Charles