diff options
| author | Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> | 2026-09-03 01:17:11 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-14 19:52:46 +0100 |
| commit | 3531143e9cecf9728bf93a94eef0622ad2fbce53 (patch) | |
| tree | 5ba68a02067067306cf776b4e3c462a5f9ab3be9 | |
| parent | 6b006d357f03993da15cfa0f3e618ab09f22a12d (diff) | |
| download | linux-next-3531143e9cecf9728bf93a94eef0622ad2fbce53.tar.gz linux-next-3531143e9cecf9728bf93a94eef0622ad2fbce53.zip | |
ASoC: SOF: mediatek: mt8195: 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-12-mukesh.ojha@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/sof/mediatek/mt8195/mt8195.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/mediatek/mt8195/mt8195.c b/sound/soc/sof/mediatek/mt8195/mt8195.c index 4d6e9300a9c0..e4b6b6c18e02 100644 --- a/sound/soc/sof/mediatek/mt8195/mt8195.c +++ b/sound/soc/sof/mediatek/mt8195/mt8195.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; |
