commit | ebcdaee4cebb3a8d0d702ab5e9392373672ec1de | [log] [tgz] |
---|---|---|
author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | Thu Jun 01 19:22:01 2017 +0100 |
committer | Vinod Koul <vinod.koul@intel.com> | Fri Jun 02 11:49:44 2017 +0530 |
tree | 985c2ab8399d9af6ff94178f5491ad54ed16c136 | |
parent | 56b177055adb246cdeca174331dbf92fc49bfccd [diff] |
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>