From: Fabio Estevam Date: Fri, 14 Feb 2014 03:19:21 +0000 (-0200) Subject: spi: spi-mxs: Propagate the real error code on platform_get_irq() failure X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cdd1945bde1e03149899a5d65c54fc0f163d24ac;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Marek Vasut Signed-off-by: Mark Brown --- 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))