Преглед изворни кода

watchdog: cadence: Add dependency on HAS_IOMEM

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>
Richard Weinberger пре 10 година
родитељ
комит
6960d4851f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      drivers/watchdog/Kconfig

+ 1 - 0
drivers/watchdog/Kconfig

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