dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Wed, 4 May 2022 15:53:21 +0000 (17:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:21:20 +0000 (10:21 +0200)
commit3cfb546439878e158f11851c601fde6b4b65b12b
tree271cdfbf2fbf3fc5f4516daa395f38abdb9d48ab
parent13d8d11dfaf925343a9a830e008f1ab4a18bb3c7
dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()

[ Upstream commit da3b8ddb464bd49b6248d00ca888ad751c9e44fd ]

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: a4ffb13c8946 ("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>
drivers/dma/stm32-mdma.c