summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/sunplus_wdt.c
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2023-08-24 15:55:13 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2023-10-11 18:34:10 +0200
commitc51a6977bd9560d7ef2ed35353b328f076e8a591 (patch)
tree08beac606057304955fdbc8321eed7c613ffd55b /drivers/watchdog/sunplus_wdt.c
parentwatchdog: at91sam9_wdt: Use the devm_clk_get_enabled() helper function (diff)
downloadlinux-c51a6977bd9560d7ef2ed35353b328f076e8a591.tar.xz
linux-c51a6977bd9560d7ef2ed35353b328f076e8a591.zip
watchdog: ath79_wdt: Use the devm_clk_get_enabled() helper function
The devm_clk_get_enabled() helper: - calls devm_clk_get() - calls clk_prepare_enable() and registers what is needed in order to call clk_disable_unprepare() when needed, as a managed resource. This simplifies the code. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230824135514.2661364-3-ruanjinjie@huawei.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/sunplus_wdt.c')
0 files changed, 0 insertions, 0 deletions