summaryrefslogtreecommitdiff
path: root/Documentation/x86/booting-dt.rst
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2023-03-04 08:56:52 -0800
committerWim Van Sebroeck <wim@linux-watchdog.org>2023-04-22 12:53:39 +0200
commit9b31b1ea125ca2e734ae89badc0c3073b4445842 (patch)
treef35f21380a6d6726d8dbad41176505dc1328ec37 /Documentation/x86/booting-dt.rst
parent12cee6efb7b94918747d09ba7488dd5cb1bbe2be (diff)
watchdog: s3c2410_wdt: Use devm_clk_get[_optional]_enabled() helpers
The devm_clk_get[_optional]_enabled() helpers: - call devm_clk_get[_optional]() - call clk_prepare_enable() and register what is needed in order to call clk_disable_unprepare() when needed, as a managed resource. This simplifies the code and avoids the calls to clk_disable_unprepare(). While at it, use dev_err_probe consistently, and use its return value to return the error code. Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230304165653.2179835-1-linux@roeck-us.net Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'Documentation/x86/booting-dt.rst')
0 files changed, 0 insertions, 0 deletions