mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 12:40:53 +07:00
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: c3bb333457
("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>
This commit is contained in:
parent
91ab883eb2
commit
20e6bb17fa
@ -226,6 +226,7 @@ config ZIIRAVE_WATCHDOG
|
||||
config RAVE_SP_WATCHDOG
|
||||
tristate "RAVE SP Watchdog timer"
|
||||
depends on RAVE_SP_CORE
|
||||
depends on NVMEM || !NVMEM
|
||||
select WATCHDOG_CORE
|
||||
help
|
||||
Support for the watchdog on RAVE SP device.
|
||||
|
Loading…
Reference in New Issue
Block a user