diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-06-01 21:23:37 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-06-16 18:28:59 +0200 |
commit | 5bc382ec2f94a7c1b2a8938c6ca99c26a6fe5f58 (patch) | |
tree | 6a648635f6e9dee5edd219e5d64e3516132600c7 /drivers/dma/mmp_pdma.c | |
parent | dmaengine: dw: Replace 'objs' by 'y' (diff) | |
download | linux-5bc382ec2f94a7c1b2a8938c6ca99c26a6fe5f58.tar.xz linux-5bc382ec2f94a7c1b2a8938c6ca99c26a6fe5f58.zip |
dmaengine: mmp_pdma: Do not warn when IRQ is shared by all chans
When there's a single interrupt for all the DMA channels, the
unsuccessful attempt to request separate IRQs emits useless warnings:
[ 1.370381] mmp-pdma d4000000.dma: IRQ index 1 not found
...
[ 1.412398] mmp-pdma d4000000.dma: IRQ index 15 not found
[ 1.418308] mmp-pdma d4000000.dma: initialized 16 channels
Avoid that, treating the IRQs as optional.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200601192337.172869-1-lkundrak@v3.sk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/mmp_pdma.c')
-rw-r--r-- | drivers/dma/mmp_pdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ad06f260e907..41c542eaa23a 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c @@ -1060,7 +1060,7 @@ static int mmp_pdma_probe(struct platform_device *op) pdev->dma_channels = dma_channels; for (i = 0; i < dma_channels; i++) { - if (platform_get_irq(op, i) > 0) + if (platform_get_irq_optional(op, i) > 0) irq_num++; } |