mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
7f24e0ee00
commit
63c72e028a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue