summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2026-03-19 10:04:05 +0800
committerMark Brown <broonie@kernel.org>2026-03-23 19:47:41 +0000
commit140039c23aca067b9ff0242e3c0ce96276bb95f3 (patch)
tree6cddd0765f6526c5eb93346890828ac9239dd0e0 /tools/perf/scripts/python
parent8b237cb10e32791e53a13c3e96e88683a736094a (diff)
spi: sifive: Simplify clock handling with devm_clk_get_enabled()
Replace devm_clk_get() followed by clk_prepare_enable() with devm_clk_get_enabled() for the bus clock. This reduces boilerplate code and error handling, as the managed API automatically disables the clock when the device is removed or if probe fails. Remove the now-unnecessary clk_disable_unprepare() calls from the probe error path and the remove callback. Adjust the error handling to use the existing put_host label. Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Link: https://patch.msgid.link/73d0d8ecb4e1af5a558d6a7866c0f886d94fe3d1.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