mfd: cs42l43: Fix MFD_CS42L43 dependency on REGMAP_IRQ
authorWoody Zhang <woodylab@foxmail.com>
Tue, 5 Sep 2023 11:41:00 +0000 (19:41 +0800)
committerLee Jones <lee@kernel.org>
Tue, 19 Sep 2023 14:05:20 +0000 (15:05 +0100)
MFD_CS42L43 depends on REGMAP_IRQ as it uses devm_regmap_add_irq_chip.
Otherwise the build may fail with following log.

  AR      drivers/built-in.a
  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  MODPOST Module.symvers
ERROR: modpost: "devm_regmap_add_irq_chip" [drivers/mfd/cs42l43.ko] undefined!

Fixes: ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver")
Signed-off-by: Woody Zhang <woodylab@foxmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/tencent_E54C7156F583E15FFE320E576E3389C39A08@qq.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/Kconfig

index aea95745c73f8541b3fd6c6c247a8c02bf2f0fec..90ce58fd629e5f32dd6cb207e60544b2718ee5c7 100644 (file)
@@ -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)"