diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-02-14 07:19:22 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-15 00:41:37 +0400 |
commit | 82106e0e39c455957888dd44d43790306b30f73e (patch) | |
tree | ad3aaca99794c5a131b885f12c236f2357171d65 /drivers/spi/spi-imx.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-82106e0e39c455957888dd44d43790306b30f73e.tar.xz |
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.c | 2 |
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; } |