[PATCH v2] memory: mtk-smi: Use devm_clk_get_enabled()

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Sun Aug 25 05:22:10 PDT 2024


On Wed, 21 Aug 2024 11:25:57 +0800, Rong Qianfeng wrote:
> Replace devm_clk_get() and clk_prepare_enable() with
> devm_clk_get_enabled() in .probe().
> 
> Fix the bug of missing clk_disable_unprepare() in .remove() by
> using devm_clk_get_enabled() that can disables and unprepares
> it automatically on driver detach.
> 
> [...]

Applied, thanks!

[1/1] memory: mtk-smi: Use devm_clk_get_enabled()
      https://git.kernel.org/krzk/linux-mem-ctrl/c/ff390189b7f2cfa20c644bc58b4462b5e2621838

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>




More information about the Linux-mediatek mailing list