diff options
author | Guenter Roeck <[email protected]> | 2023-03-04 08:56:52 -0800 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2023-04-22 12:53:39 +0200 |
commit | 9b31b1ea125ca2e734ae89badc0c3073b4445842 (patch) | |
tree | f35f21380a6d6726d8dbad41176505dc1328ec37 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 12cee6efb7b94918747d09ba7488dd5cb1bbe2be (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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions