watchdog: fix mtk_wdt.c RESET_CONTROLLER build error
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 3 Feb 2020 16:10:29 +0000 (08:10 -0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 17 Feb 2020 11:38:27 +0000 (12:38 +0100)
commit5eee7c625d414fb62985439ed58ab755d8988c76
tree89209e9a224155742e8439a95a87131976b74ef6
parent11a48a5a18c63fd7621bb050228cebf13566e4d8
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: Randy Dunlap <rdunlap@infradead.org>
Fixes: c254e103082b74e ("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: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/77c1e557-4941-3806-2933-6c3583576390@infradead.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig