ARC: reset: Only build on archs that have IOMEM
authorThomas Meyer <thomas@m3y3r.de>
Sat, 9 Sep 2017 04:02:46 +0000 (06:02 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 18 Sep 2017 08:57:48 +0000 (10:57 +0200)
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

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig

index e0c3932..d063bd5 100644 (file)
@@ -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.