diff options
author | 2023-04-19 10:07:49 +0800 | |
---|---|---|
committer | 2023-04-26 10:38:34 +0200 | |
commit | a3e9a9a5971164933e0d247125897c2e54587c6b (patch) | |
tree | e0a27f80b6cc3f80535dd3b7c485b6d27e1d374a /scripts/generate_rust_analyzer.py | |
parent | thermal/drivers/mediatek: Use devm_of_iomap to avoid resource leak in mtk_thermal_probe (diff) | |
download | wireguard-linux-a3e9a9a5971164933e0d247125897c2e54587c6b.tar.xz wireguard-linux-a3e9a9a5971164933e0d247125897c2e54587c6b.zip |
thermal/drivers/mediatek: Change clk_prepare_enable to devm_clk_get_enabled in mtk_thermal_probe
Use devm_clk_get_enabled to do automatic resource management.
Meanwhile, remove error handling labels in the probe function and
the whole remove function.
Signed-off-by: Kang Chen <void0red@hust.edu.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230419020749.621257-2-void0red@hust.edu.cn
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions