summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2026-03-19 10:04:09 +0800
committerMark Brown <broonie@kernel.org>2026-03-23 19:47:42 +0000
commit7da637804805cee6899c9a682227f328e94822a5 (patch)
treec6e779e63d1ec1990aeae09792d48e9f8aca8b27 /tools/perf/scripts/python
parent140039c23aca067b9ff0242e3c0ce96276bb95f3 (diff)
spi: stm32: Simplify clock handling with devm_clk_get_enabled()
Replace devm_clk_get() followed by clk_prepare_enable() with devm_clk_get_enabled() for the clock. This removes the need for explicit clock enable and disable calls, as the managed API automatically handles clock disabling on device removal or probe failure. Remove the now-unnecessary clk_disable_unprepare() calls from the probe error paths and the remove callback. Also simplify error handling by using dev_err_probe(). Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Acked-by: Alain Volmat <alain.volmat@foss.st.com> Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Link: https://patch.msgid.link/c8259f582596fd08541b94dce5dbb4cae513e295.1773885292.git.xiaopei01@kylinos.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions