]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: pxa_dma: use platform_get_irq_optional
authorDoug Brown <doug@schmorgal.com>
Tue, 6 Sep 2022 00:07:09 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:06 +0000 (17:42 +0100)
commit554b8d820a645a72979717de7ddc72d29d10f1e0
treeffcb933ca99909b5ad45f30e2386d60559249179
parent05bd404cc903110a874aba6c526ac84edbb47484
dmaengine: pxa_dma: use platform_get_irq_optional

[ Upstream commit 6d44e9a53861011fec3f2b2abb4f5dc11469709c ]

The first IRQ is required, but IRQs 1 through (nb_phy_chans - 1) are
optional, because on some platforms (e.g. PXA168) there is a single IRQ
shared between all channels.

This change inhibits a flood of "IRQ index # not found" messages at
startup. Tested on a PXA168-based device.

Fixes: 682a742ed79d ("driver core: platform: Add an error message to platform_get_irq*()")
Signed-off-by: Doug Brown <doug@schmorgal.com>
Link: https://lore.kernel.org/r/20220906000709.52705-1-doug@schmorgal.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/pxa_dma.c