mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 10:01:41 +00:00
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>
This commit is contained in:
parent
38dbfb59d1
commit
82106e0e39
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user