watchdog: loongson1_wdt: Add DT support
authorKeguang Zhang <keguang.zhang@gmail.com>
Thu, 11 May 2023 12:11:59 +0000 (20:11 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 26 Jun 2023 12:30:04 +0000 (14:30 +0200)
commit20fbe6291e54739beb905e0b7fc45ba534cf644d
tree197a40181b524fb48b9322de82e7f7e3db5ccba6
parent547cc9be86f4c51c51fd429ace6c2e1ef9050d15
watchdog: loongson1_wdt: Add DT support

This patch adds the of_match_table to enable DT support
of Loongson-1 watchdog driver.
And modify the parameter of devm_clk_get_enabled() accordingly.

Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lkml.kernel.org/r/20230511121159.463645-3-keguang.zhang@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/loongson1_wdt.c