Skip to contentSkip to conversation

spmi: Add dependency on HAS_IOMEM

PATCH New Richard Weinberger 1 participant 1 message May 4, 2015 SPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spmi: Add dependency on HAS_IOMEM

Not all architectures have io memory.

Fixes:
drivers/built-in.o: In function `spmi_pmic_arb_probe':
spmi-pmic-arb.c:(.text+0x1ed399): undefined reference to `devm_ioremap_resource'

---
 drivers/spmi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/spmi/Kconfig +1 -0
index c8d9956..982580a 100644
@@ -14,6 +14,7 @@ config SPMI_MSM_PMIC_ARB
 	tristate "Qualcomm MSM SPMI Controller (PMIC Arbiter)"
 	depends on IRQ_DOMAIN
 	depends on ARCH_QCOM || COMPILE_TEST
+	depends on HAS_IOMEM
 	default ARCH_QCOM
 	help
 	  If you say yes to this option, support will be included for the
Signature · 1 line
1.8.4.5