Skip to contentSkip to conversation

misc: HI6421V600_IRQ should depend on HAS_IOMEM

PATCH New Randy Dunlap 1 participant 1 message Oct 4, 2021 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: HI6421V600_IRQ should depend on HAS_IOMEM

MFD_CORE depends on HAS_IOMEM so anything that selects MFD_CORE should also depend on HAS_IOMEM since 'select' does not check any dependencies of the symbol that is being selected.

Prevents this kconfig warning:

WARNING: unmet direct dependencies detected for MFD_CORE
Depends on [n]: HAS_IOMEM [=n]
Selected by [m]:
- HI6421V600_IRQ [=m] && OF [=y] && SPMI [=m]

Fixes bb3b6552a5b0 ("staging: hikey9xx: split hi6421v600 irq into a separate driver")
Cc Mauro Carvalho Chehab <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Arnd Bergmann <[email protected]>
---
 drivers/misc/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/misc/Kconfig +1 -0
@@ -224,6 +224,7 @@ config HI6421V600_IRQ
 	tristate "HiSilicon Hi6421v600 IRQ and powerkey"
 	depends on OF
 	depends on SPMI
+	depends on HAS_IOMEM
 	select MFD_CORE
 	select REGMAP_SPMI
 	help