Skip to content

Commit

Permalink
dmaengine: imx-sdma: Return a proper error code in platform_get_irq()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Vinod Koul committed Jan 13, 2015
1 parent 7f24e0e commit 63c72e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 63c72e0

Please sign in to comment.