summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukesh Ojha <mukesh.ojha@oss.qualcomm.com>2026-09-03 01:17:10 +0530
committerMark Brown <broonie@kernel.org>2026-09-14 19:52:46 +0100
commit6b006d357f03993da15cfa0f3e618ab09f22a12d (patch)
tree0ef988f64cbec5a45b3e2b66d14be0849d4a54fb
parent4169b6a5cdd350a6ad47525ec117eb887234b5f5 (diff)
downloadlinux-next-6b006d357f03993da15cfa0f3e618ab09f22a12d.tar.gz
linux-next-6b006d357f03993da15cfa0f3e618ab09f22a12d.zip
ASoC: SOF: mediatek: mt8186: Use devm_of_reserved_mem_device_init()
Use the devres-managed devm_of_reserved_mem_device_init() to ensure the 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> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://patch.msgid.link/20260902194712.2003414-11-mukesh.ojha@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/sof/mediatek/mt8186/mt8186.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index c1bea967737d..a5ccee87e684 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -49,7 +49,7 @@ static int platform_parse_resource(struct platform_device *pdev, void *data)
struct mtk_adsp_chip_info *adsp = data;
int ret;
- ret = of_reserved_mem_device_init(dev);
+ ret = devm_of_reserved_mem_device_init(dev);
if (ret) {
dev_err(dev, "of_reserved_mem_device_init failed\n");
return ret;