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