diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2016-07-01 18:45:57 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-01 20:26:41 +0300 |
commit | 50dc60a25597e10a731c8a0813cb3e88db345f54 (patch) | |
tree | f5e6e95732f1626695bd632869ff7263e3487e19 /drivers/dma/dma-axi-dmac.c | |
parent | 9bcfe38f58a442d512d3f3e5a7dfab9bc6797c3d (diff) |
dmaengine: axi-dmac: Propagate errors from platform_get_irq()
Propagate errors returned by platform_get_irq() to the driver core. This
will enable proper probe deferring for the driver in case the IRQ provider
has not been registered yet.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dma-axi-dmac.c')
-rw-r--r-- | drivers/dma/dma-axi-dmac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index 8b0de8cba7be..0e0dfc0890ac 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -579,7 +579,9 @@ static int axi_dmac_probe(struct platform_device *pdev) return -ENOMEM; dmac->irq = platform_get_irq(pdev, 0); - if (dmac->irq <= 0) + if (dmac->irq < 0) + return dmac->irq; + if (dmac->irq == 0) return -EINVAL; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |