Skip to content

Commit

Permalink
spi: spi-mxs: 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>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Feb 14, 2014
1 parent 9a7da6c commit cdd1945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit cdd1945

Please sign in to comment.