summaryrefslogtreecommitdiff
path: root/drivers/dma/apple-admac.c
diff options
context:
space:
mode:
authorMartin Povišer <povik+lin@cutebit.org>2022-10-19 16:23:23 +0300
committerVinod Koul <vkoul@kernel.org>2022-11-08 08:13:56 +0300
commit8454f880c24bca0d9d4bfb6ed4a4a5429a4d9b20 (patch)
tree13325e37bd05b7592d43f5c5e09149fc9efac6ff /drivers/dma/apple-admac.c
parent0b8c97a1d8c1bb6a853b8bb1778e8fef17b86fc9 (diff)
downloadlinux-8454f880c24bca0d9d4bfb6ed4a4a5429a4d9b20.tar.xz
dmaengine: apple-admac: Fix grabbing of channels in of_xlate
The of_xlate callback is supposed to return the channel after already having 'grabbed' it for private use, so fill that in. Fixes: b127315d9a78 ("dmaengine: apple-admac: Add Apple ADMAC driver") Signed-off-by: Martin Povišer <povik+lin@cutebit.org> Link: https://lore.kernel.org/r/20221019132324.8585-1-povik+lin@cutebit.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/apple-admac.c')
-rw-r--r--drivers/dma/apple-admac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/apple-admac.c b/drivers/dma/apple-admac.c
index 317ca76ccafd..a2cc520225d3 100644
--- a/drivers/dma/apple-admac.c
+++ b/drivers/dma/apple-admac.c
@@ -493,7 +493,7 @@ static struct dma_chan *admac_dma_of_xlate(struct of_phandle_args *dma_spec,
return NULL;
}
- return &ad->channels[index].chan;
+ return dma_get_slave_channel(&ad->channels[index].chan);
}
static int admac_drain_reports(struct admac_data *ad, int channo)