summaryrefslogtreecommitdiffstats
path: root/Documentation/subsystem-apis.rst
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2023-03-04 17:56:52 +0100
committerWim Van Sebroeck <wim@linux-watchdog.org>2023-04-22 12:53:39 +0200
commit9b31b1ea125ca2e734ae89badc0c3073b4445842 (patch)
treef35f21380a6d6726d8dbad41176505dc1328ec37 /Documentation/subsystem-apis.rst
parentwatchdog: core: Always set WDOG_HW_RUNNING when starting watchdog (diff)
downloadlinux-9b31b1ea125ca2e734ae89badc0c3073b4445842.tar.xz
linux-9b31b1ea125ca2e734ae89badc0c3073b4445842.zip
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/subsystem-apis.rst')
0 files changed, 0 insertions, 0 deletions