projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f24e0e
)
dmaengine: imx-sdma: Return a proper error code in platform_get_irq()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Mon, 29 Dec 2014 17:20:53 +0000
(15:20 -0200)
committer
Vinod Koul
<vinod.koul@intel.com>
Tue, 13 Jan 2015 18:21:07 +0000
(23:51 +0530)
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>
drivers/dma/imx-sdma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/imx-sdma.c
b/drivers/dma/imx-sdma.c
index 125c326c525fcfdee27899cd185bb781b67ac345..fc874e53bec40064a40dc468e87a9f80a1d62eb4 100644
(file)
--- 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);