Skip to content

Commit da3b8dd

Browse files
ADESTMvinodkoul
authored andcommitted
dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()
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: a4ffb13 ("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>
1 parent 9d6a2d9 commit da3b8dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma/stm32-mdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ static void stm32_mdma_xfer_end(struct stm32_mdma_chan *chan)
13181318
static irqreturn_t stm32_mdma_irq_handler(int irq, void *devid)
13191319
{
13201320
struct stm32_mdma_device *dmadev = devid;
1321-
struct stm32_mdma_chan *chan = devid;
1321+
struct stm32_mdma_chan *chan;
13221322
u32 reg, id, ccr, ien, status;
13231323

13241324
/* Find out which channel generates the interrupt */

0 commit comments

Comments
 (0)