Commit 20e6bb17 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Wim Van Sebroeck

watchdog: rave-sp: add NVMEM dependency

We can build this driver with or without NVMEM, but not built-in
when NVMEM is a loadable module:

drivers/watchdog/rave-sp-wdt.o: In function `rave_sp_wdt_probe':
rave-sp-wdt.c:(.text+0x27c): undefined reference to `nvmem_cell_get'
rave-sp-wdt.c:(.text+0x290): undefined reference to `nvmem_cell_read'
rave-sp-wdt.c:(.text+0x2c4): undefined reference to `nvmem_cell_put'

This adds a Kconfig dependency to enforce that.

Fixes: c3bb3334 ("watchdog: Add RAVE SP watchdog driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 91ab883e
...@@ -226,6 +226,7 @@ config ZIIRAVE_WATCHDOG ...@@ -226,6 +226,7 @@ config ZIIRAVE_WATCHDOG
config RAVE_SP_WATCHDOG config RAVE_SP_WATCHDOG
tristate "RAVE SP Watchdog timer" tristate "RAVE SP Watchdog timer"
depends on RAVE_SP_CORE depends on RAVE_SP_CORE
depends on NVMEM || !NVMEM
select WATCHDOG_CORE select WATCHDOG_CORE
help help
Support for the watchdog on RAVE SP device. Support for the watchdog on RAVE SP device.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment