]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: pl330: fix warning in pl330_remove
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Thu, 1 Jun 2017 18:22:01 +0000 (19:22 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 2 Jun 2017 06:19:44 +0000 (11:49 +0530)
commita03a8acabe032725391230c530567f26118e43fa
tree985c2ab8399d9af6ff94178f5491ad54ed16c136
parentd5c5145e22bf7644caa69fc90579a767d4463dad
dmaengine: pl330: fix warning in pl330_remove

When removing a device with less than 9 IRQs (AMBA_NR_IRQS), we'll get a
big WARN_ON from devres.c because pl330_remove calls devm_free_irqs for
unallocated irqs. Similarly to pl330_probe, check that IRQ number is
present before calling devm_free_irq.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c