mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 20:38:12 +00:00
dmaengine: apple-admac: Fix grabbing of channels in of_xlate
[ Upstream commit8454f880c2
] The of_xlate callback is supposed to return the channel after already having 'grabbed' it for private use, so fill that in. Fixes:b127315d9a
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ab811ccb62
commit
e893b7debb
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,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)
|
||||
|
|
Loading…
Reference in a new issue