[PATCH 3/4] ASoC: renesas: rcar: Use dmaengine_get_dma_device() instead of chan->device->dev

From: Frank . Li

Date: Fri Nov 06 2026 - 15:16:06 EST


From: Frank Li <Frank.Li@xxxxxxx>

Replace open-coded chan->device->dev with the accessor
dmaengine_get_dma_device() to avoid direct access to DMA engine
internals.

Prepare to make struct dma_device private.

Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
sound/soc/renesas/rcar/dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/renesas/rcar/dma.c b/sound/soc/renesas/rcar/dma.c
index 793dd4adbe5c6..d70cc71676df6 100644
--- a/sound/soc/renesas/rcar/dma.c
+++ b/sound/soc/renesas/rcar/dma.c
@@ -246,7 +246,7 @@ static int rsnd_dmaen_attach(struct rsnd_dai_stream *io,
* see
* rsnd_preallocate_pages()
*/
- io->dmac_dev = chan->device->dev;
+ io->dmac_dev = dmaengine_get_dma_device(chan);

dma_release_channel(chan);


--
2.43.0