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

From: Dmitry Baryshkov
Date: Fri Jan 03 2025 - 07:22:14 EST


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@xxxxxxxxxx>
> ---
> drivers/iommu/msm_iommu.c | 51 +++++++++------------------------------
> 1 file changed, 11 insertions(+), 40 deletions(-)
>

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

--
With best wishes
Dmitry