summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-12-29 18:20:53 +0100
committerVinod Koul <vinod.koul@intel.com>2015-01-13 19:21:07 +0100
commit63c72e028a1dd18515c356834d3f9cfce1cd3f51 (patch)
treedc9a12fdd46d8eda77f562103f7a0e3710713fda /drivers
parentdmaengine: imx-sdma: Use devm functions (diff)
downloadlinux-63c72e028a1dd18515c356834d3f9cfce1cd3f51.tar.xz
linux-63c72e028a1dd18515c356834d3f9cfce1cd3f51.zip
dmaengine: imx-sdma: Return a proper error code in platform_get_irq()
There is no need to return a 'fake' value upon platform_get_irq() failure. Just propagate the real error instead. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/imx-sdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 125c326c525f..fc874e53bec4 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1483,7 +1483,7 @@ static int sdma_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0)
- return -EINVAL;
+ return irq;
iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
sdma->regs = devm_ioremap_resource(&pdev->dev, iores);