summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-imx.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-02-14 04:19:22 +0100
committerMark Brown <broonie@linaro.org>2014-02-14 21:41:37 +0100
commit82106e0e39c455957888dd44d43790306b30f73e (patch)
treead3aaca99794c5a131b885f12c236f2357171d65 /drivers/spi/spi-imx.c
parentLinus 3.14-rc1 (diff)
downloadlinux-82106e0e39c455957888dd44d43790306b30f73e.tar.xz
linux-82106e0e39c455957888dd44d43790306b30f73e.zip
spi: spi-imx: Propagate the real error code on platform_get_irq() failure
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> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-imx.c')
-rw-r--r--drivers/spi/spi-imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index a5474ef9d2a0..ad6daf510d33 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -880,7 +880,7 @@ static int spi_imx_probe(struct platform_device *pdev)
spi_imx->irq = platform_get_irq(pdev, 0);
if (spi_imx->irq < 0) {
- ret = -EINVAL;
+ ret = spi_imx->irq;
goto out_master_put;
}