dmaengine: stm32-dma: Fix redundant call to platform_get_irq
authorAmelie Delaunay <amelie.delaunay@st.com>
Tue, 7 May 2019 07:54:41 +0000 (09:54 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 May 2019 04:39:24 +0000 (10:09 +0530)
Commit c6504be53972 ("dmaengine: stm32-dma: Fix unsigned variable compared
with zero") duplicated the call to platform_get_irq.
So remove the first call to platform_get_irq.

Fixes: c6504be53972 ("dmaengine: stm32-dma: Fix unsigned variable compared with zero")
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-dma.c

index 88d9c6c..67fdd02 100644 (file)
@@ -1366,7 +1366,6 @@ static int stm32_dma_probe(struct platform_device *pdev)
 
        for (i = 0; i < STM32_DMA_MAX_CHANNELS; i++) {
                chan = &dmadev->chan[i];
-               chan->irq = platform_get_irq(pdev, i);
                ret = platform_get_irq(pdev, i);
                if (ret < 0)  {
                        if (ret != -EPROBE_DEFER)