Re: [PATCH] iommu/msm: Use helper function devm_clk_get_prepared()

Dmitry Baryshkov
2025-01-03T12:22:03Z

On Fri, Jan 03, 2025 at 07:30:59PM +0800, Zhang Heng wrote:
> Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
> and enabled clocks"), devm_clk_get() and clk_prepare() can now be replaced
> by devm_clk_get_prepared() when driver prepares the clocks for the whole
> lifetime of the device. Moreover, it is no longer necessary to unprepare
> the clocks explicitly.
>
> Signed-off-by: Zhang Heng <zhangheng@kylinos.cn>
> ---
> drivers/iommu/msm_iommu.c | 51 +++++++++------------------------------
> 1 file changed, 11 insertions(+), 40 deletions(-)
>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

--
With best wishes
Dmitry