Skip to contentSkip to conversation

ARC: reset: Only build on archs that have IOMEM

PATCH New Thomas Meyer 1 participant 1 message Sep 11, 2017 Reset controller framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARC: reset: Only build on archs that have IOMEM

This avoids the error:
drivers/reset/reset-hsdk-v1.o: In function `hsdkv1_reset_probe':
/home/thomas/git/linux/drivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource'
collect2: error: ld returned 1 exit status

---
 drivers/reset/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/Kconfig +1 -0
index 52d5251660b9..a656750667b2 100644
@@ -36,6 +36,7 @@ config RESET_BERLIN
 
 config RESET_HSDK_V1
 	bool "HSDK v1 Reset Driver"
+	depends on HAS_IOMEM
 	default n
 	help
 	  This enables the reset controller driver for HSDK v1.
Signature · 1 line
2.11.0