You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()
[ Upstream commitda3b8ddb46] The parameter to pass back to the handler function when irq has been requested is a struct stm32_mdma_device pointer, not a struct stm32_mdma_chan pointer. Even if chan is reinit later in the function, remove this wrong initialization. Fixes:a4ffb13c89("dmaengine: Add STM32 MDMA driver") Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Link: https://lore.kernel.org/r/20220504155322.121431-3-amelie.delaunay@foss.st.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
13d8d11dfa
commit
3cfb546439
@@ -1344,7 +1344,7 @@ static void stm32_mdma_xfer_end(struct stm32_mdma_chan *chan)
|
||||
static irqreturn_t stm32_mdma_irq_handler(int irq, void *devid)
|
||||
{
|
||||
struct stm32_mdma_device *dmadev = devid;
|
||||
struct stm32_mdma_chan *chan = devid;
|
||||
struct stm32_mdma_chan *chan;
|
||||
u32 reg, id, ccr, ien, status;
|
||||
|
||||
/* Find out which channel generates the interrupt */
|
||||
|
||||
Reference in New Issue
Block a user