[PATCH 03/42] firmware: qcom: scm: Use devm_of_reserved_mem_device_init()
Dmitry Baryshkov
dmitry.baryshkov at oss.qualcomm.com
Fri Jul 3 16:12:37 PDT 2026
On Sat, Jul 04, 2026 at 01:08:16AM +0530, Mukesh Ojha wrote:
> Switch from of_reserved_mem_device_init() to the new resource managed
> devm_of_reserved_mem_device_init() so that the reserved memory region
> is released automatically on probe failure or device unbind. This
> eliminates the err_rmem cleanup label and the need to call
> of_reserved_mem_device_release() explicitly on error paths.
>
> Signed-off-by: Mukesh Ojha <mukesh.ojha at oss.qualcomm.com>
> ---
> drivers/firmware/qcom/qcom_scm.c | 22 +++++++---------------
> 1 file changed, 7 insertions(+), 15 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at oss.qualcomm.com>
--
With best wishes
Dmitry
More information about the Linux-mediatek
mailing list