[PATCH] clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()
Abel Vesa
abel.vesa at linaro.org
Mon Jun 12 02:32:38 PDT 2023
On Wed, 03 May 2023 07:06:07 +0000, Yuxing Liu wrote:
> Replace of_iomap() and kzalloc() with devm_of_iomap() and devm_kzalloc()
> which can automatically release the related memory when the device
> or driver is removed or unloaded to avoid potential memory leak.
>
> In this case, iounmap(anatop_base) in line 427,433 are removed
> as manual release is not required.
>
> [...]
Applied, thanks!
[1/1] clk: imx: clk-imx8mp: improve error handling in imx8mp_clocks_probe()
commit: 878b02d5f3b56cb090dbe2c70c89273be144087f
Best regards,
--
Abel Vesa <abel.vesa at linaro.org>
More information about the linux-arm-kernel
mailing list