Commit 5eee7c62 authored by Randy Dunlap's avatar Randy Dunlap Committed by Wim Van Sebroeck

watchdog: fix mtk_wdt.c RESET_CONTROLLER build error

Fix build error when CONFIG_RESET_CONTROLLER is not set by
selecting RESET_CONTROLLER.

ld: drivers/watchdog/mtk_wdt.o: in function `mtk_wdt_probe':
mtk_wdt.c:(.text+0x3ec): undefined reference to `devm_reset_controller_register'
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Fixes: c254e103 ("watchdog: mtk_wdt: mt8183: Add reset controller")
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: linux-watchdog@vger.kernel.org
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/77c1e557-4941-3806-2933-6c3583576390@infradead.orgSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 11a48a5a
...@@ -841,6 +841,7 @@ config MEDIATEK_WATCHDOG ...@@ -841,6 +841,7 @@ config MEDIATEK_WATCHDOG
tristate "Mediatek SoCs watchdog support" tristate "Mediatek SoCs watchdog support"
depends on ARCH_MEDIATEK || COMPILE_TEST depends on ARCH_MEDIATEK || COMPILE_TEST
select WATCHDOG_CORE select WATCHDOG_CORE
select RESET_CONTROLLER
help help
Say Y here to include support for the watchdog timer Say Y here to include support for the watchdog timer
in Mediatek SoCs. in Mediatek SoCs.
......
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