diff options
author | Li Zetao <lizetao1@huawei.com> | 2024-09-03 19:02:04 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-09-09 15:30:04 +0300 |
commit | 554475248177894513bbb495de577836e67a57c0 (patch) | |
tree | 30b21b8b725e3db87a1b3254e5be9dcd982822d8 /tools/perf/scripts/python/gecko.py | |
parent | 6d7c6ae1efb1ff68bc01d79d94fdf0388f86cdd8 (diff) |
wifi: wilc1000: Convert using devm_clk_get_optional_enabled() in wilc_sdio_probe()
Use devm_clk_get_optional_enabled() instead of devm_clk_get_optional() +
clk_prepare_enable(), which can make the clk consistent with the device
life cycle and reduce the risk of unreleased clk resources. Since the
device framework has automatically released the clk resource, there is
no need to execute clk_disable_unprepare(clk) on the error path, drop
the clk_disable_unprepare label, and the original error process can change
to dispose_irq.
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240903110205.4127706-2-lizetao1@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions