Thread (66 messages) 66 messages, 15 authors, 11d ago

Re: [PATCH 03/42] firmware: qcom: scm: Use devm_of_reserved_mem_device_init()

From: Dmitry Baryshkov <hidden>
Date: 2026-07-03 23:12:47
Also in: dri-devel, imx, linux-arm-msm, linux-aspeed, linux-devicetree, linux-media, linux-mediatek, linux-mips, linux-mmc, linux-remoteproc, linux-sound, linux-staging, linux-sunxi, linux-tegra, lkml, openbmc

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 <redacted>
---
 drivers/firmware/qcom/qcom_scm.c | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)
Reviewed-by: Dmitry Baryshkov <redacted>


-- 
With best wishes
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help