* [PATCH] mfd: max77650: Select REGMAP_IRQ in Kconfig
@ 2020-01-03 11:41 Bartosz Golaszewski
2020-01-06 11:17 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2020-01-03 11:41 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-kernel, Bartosz Golaszewski, Paul Gazzillo
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
MAX77650 MFD driver uses regmap_irq API but doesn't select the required
REGMAP_IRQ option in Kconfig. This can cause the following build error
if regmap irq is not enabled implicitly by someone else:
ld: drivers/mfd/max77650.o: in function `max77650_i2c_probe':
max77650.c:(.text+0xcb): undefined reference to `devm_regmap_add_irq_chip'
ld: max77650.c:(.text+0xdb): undefined reference to `regmap_irq_get_domain'
make: *** [Makefile:1079: vmlinux] Error 1
Fix it by adding the missing option.
Fixes: d0f60334500b ("mfd: Add new driver for MAX77650 PMIC")
Reported-by: Paul Gazzillo <paul@pgazz.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
drivers/mfd/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 420900852166..c366503c466d 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -758,6 +758,7 @@ config MFD_MAX77650
depends on OF || COMPILE_TEST
select MFD_CORE
select REGMAP_I2C
+ select REGMAP_IRQ
help
Say Y here to add support for Maxim Semiconductor MAX77650 and
MAX77651 Power Management ICs. This is the core multifunction
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mfd: max77650: Select REGMAP_IRQ in Kconfig
2020-01-03 11:41 [PATCH] mfd: max77650: Select REGMAP_IRQ in Kconfig Bartosz Golaszewski
@ 2020-01-06 11:17 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2020-01-06 11:17 UTC (permalink / raw)
To: Bartosz Golaszewski; +Cc: linux-kernel, Bartosz Golaszewski, Paul Gazzillo
On Fri, 03 Jan 2020, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> MAX77650 MFD driver uses regmap_irq API but doesn't select the required
> REGMAP_IRQ option in Kconfig. This can cause the following build error
> if regmap irq is not enabled implicitly by someone else:
>
> ld: drivers/mfd/max77650.o: in function `max77650_i2c_probe':
> max77650.c:(.text+0xcb): undefined reference to `devm_regmap_add_irq_chip'
> ld: max77650.c:(.text+0xdb): undefined reference to `regmap_irq_get_domain'
> make: *** [Makefile:1079: vmlinux] Error 1
>
> Fix it by adding the missing option.
>
> Fixes: d0f60334500b ("mfd: Add new driver for MAX77650 PMIC")
> Reported-by: Paul Gazzillo <paul@pgazz.com>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
> drivers/mfd/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks.
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-06 11:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-03 11:41 [PATCH] mfd: max77650: Select REGMAP_IRQ in Kconfig Bartosz Golaszewski
2020-01-06 11:17 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox