summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2026-03-19 10:03:58 +0800
committerMark Brown <broonie@kernel.org>2026-03-23 19:47:39 +0000
commite532e21a246d3fde56b7c74d6f730a16291cc96e (patch)
tree1a4405074d636dd9fd718d170eae7355997d8944 /tools/perf/scripts/python
parenta37fb5166be943fa78962f77db00ce5a25366e87 (diff)
spi: bcm63xx-hsspi: Simplify clock handling with devm_clk_get_enabled()
Replace devm_clk_get() followed by clk_prepare_enable() with devm_clk_get_enabled() for both the "hsspi" and "pll" clocks. This reduces boilerplate code and error handling, as the managed API automatically disables the clocks when the device is removed or if probe fails. Remove the now-unnecessary clk_disable_unprepare() calls from the probe error paths and the remove callback. Accordingly, adjust the error handling labels to direct returns where possible. Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Link: https://patch.msgid.link/3a187be6d9963645f01caebc1169e06f8804b7a6.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