Skip to content

Commit

Permalink
spi: spi-imx: Propagate the real error code on platform_get_irq() fai…
Browse files Browse the repository at this point in the history
…lure

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>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Feb 14, 2014
1 parent 38dbfb5 commit 82106e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 82106e0

Please sign in to comment.