From: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-aspeed@lists.ozlabs.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-mmc@vger.kernel.org,
linux-remoteproc@vger.kernel.org, linux-sound@vger.kernel.org,
linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev,
linux-tegra@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
openbmc@lists.ozlabs.org, sound-open-firmware@alsa-project.org
Cc: Konrad Dybcio <konradybcio@kernel.org>,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Subject: [PATCH 33/42] drm: arcpgu: Use devm_of_reserved_mem_device_init()
Date: Mon, 6 Jul 2026 01:10:09 +0530 [thread overview]
Message-ID: <20260705194019.2565498-1-mukesh.ojha@oss.qualcomm.com> (raw)
In-Reply-To: <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the optional reserved memory region is released on device removal,
fixing a missing cleanup in the original code.
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
drivers/gpu/drm/tiny/arcpgu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c
index c93d61ac0bb7..fa01407570a8 100644
--- a/drivers/gpu/drm/tiny/arcpgu.c
+++ b/drivers/gpu/drm/tiny/arcpgu.c
@@ -278,7 +278,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
arc_pgu_read(arcpgu, ARCPGU_REG_ID));
/* Get the optional framebuffer memory resource */
- ret = of_reserved_mem_device_init(drm->dev);
+ ret = devm_of_reserved_mem_device_init(drm->dev);
if (ret && ret != -ENODEV)
return ret;
--
2.53.0
next prev parent reply other threads:[~2026-07-05 19:40 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 19:38 [PATCH 00/42] of: reserved_mem: Introduce devres helpers and convert drivers Mukesh Ojha
2026-07-03 19:38 ` [PATCH 01/42] of: reserved_mem: Introduce devres-managed initialization functions Mukesh Ojha
2026-07-03 19:38 ` [PATCH 02/42] of: reserved_mem: Add devm_of_reserved_mem_device_init_by_name() Mukesh Ojha
2026-07-03 19:38 ` [PATCH 03/42] firmware: qcom: scm: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-07-03 23:12 ` Dmitry Baryshkov
2026-07-06 8:32 ` Konrad Dybcio
2026-07-03 19:38 ` [PATCH 04/42] remoteproc: da8xx: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 05/42] remoteproc: keystone: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 06/42] media: synopsys: hdmirx: " Mukesh Ojha
2026-07-06 15:00 ` Dmitry Osipenko
2026-07-03 19:38 ` [PATCH 07/42] remoteproc: omap: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 08/42] drm: logicvc: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 09/42] drm: hdlcd: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 10/42] drm: pl111: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 11/42] remoteproc: mtk_scp: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 12/42] media: aspeed: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 13/42] media: nuvoton: npcm-video: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 14/42] memory: tegra210-emc: Use devm_of_reserved_mem_device_init_by_name() Mukesh Ojha
2026-07-03 19:38 ` [PATCH 15/42] drm: komeda: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-07-03 19:38 ` [PATCH 16/42] drm: malidp: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 17/42] drm: ingenic: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 18/42] drm: kmb: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 19/42] drm: sun4i: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 20/42] drm: xlnx: zynqmp_dpsub: " Mukesh Ojha
2026-07-07 9:13 ` Pandey, Radhey Shyam
2026-07-03 19:38 ` [PATCH 21/42] media: arm: mali-c55: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 22/42] media: mediatek: vpu: " Mukesh Ojha
2026-07-03 19:38 ` [PATCH 23/42] mmc: sdhci-of-bst: Use devm_of_reserved_mem_device_init_by_idx() Mukesh Ojha
2026-07-03 19:38 ` [PATCH 24/42] remoteproc: ti_k3: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-07-03 19:38 ` [PATCH 25/42] ASoC: mediatek: mt8192: " Mukesh Ojha
2026-07-06 12:16 ` Mark Brown
2026-07-03 19:38 ` [PATCH 26/42] ASoC: mediatek: mt8196: " Mukesh Ojha
2026-07-06 12:16 ` Mark Brown
2026-07-03 19:38 ` [PATCH 27/42] ASoC: mediatek: mt8183: " Mukesh Ojha
2026-07-06 12:17 ` Mark Brown
2026-07-03 19:38 ` [PATCH 28/42] ASoC: mediatek: mt8189: " Mukesh Ojha
2026-07-06 12:18 ` Mark Brown
2026-07-03 19:38 ` [PATCH 29/42] ASoC: SOF: imx: Use devm_of_reserved_mem_device_init_by_name() Mukesh Ojha
2026-07-06 12:19 ` Mark Brown
2026-07-03 19:38 ` [PATCH 30/42] staging: media: cedrus: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-07-03 19:38 ` [PATCH 31/42] ASoC: cix-ipbloq: " Mukesh Ojha
2026-07-06 12:20 ` Mark Brown
2026-07-07 1:34 ` Gary Yang
2026-07-03 19:38 ` [PATCH 32/42] drm: aspeed: " Mukesh Ojha
2026-07-05 19:40 ` Mukesh Ojha [this message]
2026-07-05 19:40 ` [PATCH 34/42] ASoC: mediatek: mt8173: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 35/42] ASoC: mediatek: mt8186: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 36/42] ASoC: mediatek: mt8188: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 37/42] ASoC: mediatek: mt8195: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 38/42] ASoC: SOF: mediatek: mt8186: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 39/42] ASoC: SOF: mediatek: mt8195: " Mukesh Ojha
2026-07-05 19:40 ` [PATCH 40/42] misc: fastrpc: " Mukesh Ojha
2026-07-06 4:55 ` Ekansh Gupta
2026-07-05 19:40 ` [PATCH 41/42] ASoC: fsl: imx-rpmsg: Use devm_of_reserved_mem_device_init_by_idx() Mukesh Ojha
2026-07-05 19:40 ` [PATCH 42/42] ASoC: sprd: Use devm_of_reserved_mem_device_init() Mukesh Ojha
2026-07-06 12:14 ` [PATCH 00/42] of: reserved_mem: Introduce devres helpers and convert drivers Mark Brown
2026-07-06 13:16 ` Mukesh Ojha
2026-07-07 11:39 ` Liviu Dudau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260705194019.2565498-1-mukesh.ojha@oss.qualcomm.com \
--to=mukesh.ojha@oss.qualcomm.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=imx@lists.linux.dev \
--cc=konradybcio@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux-tegra@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=openbmc@lists.ozlabs.org \
--cc=sound-open-firmware@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox