watchdog: rave-sp: add NVMEM dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 15 Jan 2018 16:10:33 +0000 (17:10 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 19 Feb 2018 16:43:50 +0000 (17:43 +0100)
commit20e6bb17facdc2a078baa12136910bab2c315519
treee3b668e382fce8d0103e9e7ea4d94b08b145de5a
parent91ab883eb21325ad80f3473633f794c78ac87f51
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: c3bb33345721 ("watchdog: Add RAVE SP watchdog driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig