[RESEND] mfd: bd957x: Fix Kconfig dependency

Message ID Y3SdCWkRr1L64SWK@dc75zzyyyyyyyyyyyyydt-3.rev.dnainternet.fi
State New
Headers
Series [RESEND] mfd: bd957x: Fix Kconfig dependency |

Commit Message

Matti Vaittinen Nov. 16, 2022, 8:19 a.m. UTC
  The bd957x driver uses regmap-IRQ but does not SELECT ot depend on it.
This can cause build failure.

SELECT the regmap-IRQ for BD957X from Kconfig.

Fixes: 0e9692607f94 ("mfd: bd9576: Add IRQ support")
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
Oh, found this forgotten treasure while cleaning old branches from my
local git. It seems to me this is still valid but has fallen through the
cracks.

 drivers/mfd/Kconfig | 1 +
 1 file changed, 1 insertion(+)


base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa
  

Comments

Lee Jones Nov. 16, 2022, 6:10 p.m. UTC | #1
On Wed, 16 Nov 2022, Matti Vaittinen wrote:

> The bd957x driver uses regmap-IRQ but does not SELECT ot depend on it.
> This can cause build failure.
> 
> SELECT the regmap-IRQ for BD957X from Kconfig.
> 
> Fixes: 0e9692607f94 ("mfd: bd9576: Add IRQ support")
> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> ---
> Oh, found this forgotten treasure while cleaning old branches from my
> local git. It seems to me this is still valid but has fallen through the
> cracks.
> 
>  drivers/mfd/Kconfig | 1 +
>  1 file changed, 1 insertion(+)

Applied with some commit-log clean-up.
  

Patch

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 8b93856de432..9940e2724c05 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -2027,6 +2027,7 @@  config MFD_ROHM_BD957XMUF
 	depends on I2C=y
 	depends on OF
 	select REGMAP_I2C
+	select REGMAP_IRQ
 	select MFD_CORE
 	help
 	  Select this option to get support for the ROHM BD9576MUF and