watchdog: cadence: Add dependency on HAS_IOMEM
authorRichard Weinberger <richard@nod.at>
Mon, 4 May 2015 19:01:25 +0000 (21:01 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 22 Jun 2015 13:54:23 +0000 (15:54 +0200)
Not all architectures have io memory.

Fixes:
drivers/built-in.o: In function `cdns_wdt_probe':
cadence_wdt.c:(.text+0x33b7c9): undefined reference to `devm_ioremap_resource'

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig

index af5c490eb4667cce3273beed984348c641ec8795..a8f29ea9188df4922a4ce8ae14809f23c5a20d0f 100644 (file)
@@ -169,6 +169,7 @@ config AT91SAM9X_WATCHDOG
 
 config CADENCE_WATCHDOG
        tristate "Cadence Watchdog Timer"
+       depends on HAS_IOMEM
        select WATCHDOG_CORE
        help
          Say Y here if you want to include support for the watchdog