diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-02-14 04:19:21 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-14 21:41:14 +0100 |
commit | cdd1945bde1e03149899a5d65c54fc0f163d24ac (patch) | |
tree | 4ad6eb508ce7d49c8b475bda455b0f9964797046 /drivers/spi/spi-mxs.c | |
parent | spi: mxs: Use list_for_each_entry to iterate over transfer list (diff) | |
download | linux-cdd1945bde1e03149899a5d65c54fc0f163d24ac.tar.xz linux-cdd1945bde1e03149899a5d65c54fc0f163d24ac.zip |
spi: spi-mxs: 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>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
-rw-r--r-- | drivers/spi/spi-mxs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index d3803198e166..5bf807a466e3 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -473,7 +473,7 @@ static int mxs_spi_probe(struct platform_device *pdev) iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); irq_err = platform_get_irq(pdev, 0); if (irq_err < 0) - return -EINVAL; + return irq_err; base = devm_ioremap_resource(&pdev->dev, iores); if (IS_ERR(base)) |