linux/drivers/net/wireless/microchip
Li Zetao ff63a5c727 wifi: wilc1000: Convert using devm_clk_get_optional_enabled() in wilc_bus_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.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240903110205.4127706-3-lizetao1@huawei.com
2024-09-09 15:30:04 +03:00
..
wilc1000 wifi: wilc1000: Convert using devm_clk_get_optional_enabled() in wilc_bus_probe() 2024-09-09 15:30:04 +03:00
Kconfig wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
Makefile wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00