Commit 1ccfe6f982674e4b7bd832b904bafcb3db890252

Authored by Richard Weinberger
Committed by Wim Van Sebroeck
1 parent 34a9bff4ab

watchdog: dw_wdt: Add dependency on HAS_IOMEM

On archs like S390 or um this driver cannot build nor work.
Make it depend on HAS_IOMEM to bypass build failures.

drivers/built-in.o: In function `dw_wdt_drv_probe':
drivers/watchdog/dw_wdt.c:302: undefined reference to `devm_ioremap_resource'

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/watchdog/Kconfig
... ... @@ -223,6 +223,7 @@
223 223  
224 224 config DW_WATCHDOG
225 225 tristate "Synopsys DesignWare watchdog"
  226 + depends on HAS_IOMEM
226 227 help
227 228 Say Y here if to include support for the Synopsys DesignWare
228 229 watchdog timer found in many chips.