projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a7da6c
)
spi: spi-mxs: Propagate the real error code on platform_get_irq() failure
author
Fabio Estevam
<fabio.estevam@freescale.com>
Fri, 14 Feb 2014 03:19:21 +0000
(
01:19
-0200)
committer
Mark Brown
<broonie@linaro.org>
Fri, 14 Feb 2014 20:41:14 +0000
(20:41 +0000)
No need to return a 'fake' return value on platform_get_irq() failure.
Just return the error code itself instead.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mxs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-mxs.c
b/drivers/spi/spi-mxs.c
index d3803198e1665578eee81e7e536ec89f5d687722..5bf807a466e3f76e3773ff5ce668a1a5128ecabc 100644
(file)
--- a/
drivers/spi/spi-mxs.c
+++ b/
drivers/spi/spi-mxs.c
@@
-473,7
+473,7
@@
static int mxs_spi_probe(struct platform_device *pdev)
iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
irq_err = platform_get_irq(pdev, 0);
if (irq_err < 0)
- return
-EINVAL
;
+ return
irq_err
;
base = devm_ioremap_resource(&pdev->dev, iores);
if (IS_ERR(base))
This page took
0.025201 seconds
and
5
git commands to generate.