aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-mxs.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-07-21 21:29:54 -0400
committerMark Brown <broonie@linaro.org>2013-07-22 05:51:13 -0400
commit796305a2e2d11748637c9d9e2ac71dfbb6af2372 (patch)
tree4f0fd87dc832e66016b8d79e6d825d6b779c2c46 /drivers/spi/spi-mxs.c
parent8498bce934b864d609dab15a342bc47bb637c7f6 (diff)
spi: spi-mxs: Remove unneeded check for platform_get_resource()
As devm_ioremap_resource() is used on probe, there is no need to explicitly check the return value from platform_get_resource(), as this is something that devm_ioremap_resource() takes care by itself. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
-rw-r--r--drivers/spi/spi-mxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index 5b0a8e309197..d7b3e4311f72 100644
--- a/drivers/spi/spi-mxs.c
+++ b/drivers/spi/spi-mxs.c
@@ -513,7 +513,7 @@ static int mxs_spi_probe(struct platform_device *pdev)
513 513
514 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); 514 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
515 irq_err = platform_get_irq(pdev, 0); 515 irq_err = platform_get_irq(pdev, 0);
516 if (!iores || irq_err < 0) 516 if (irq_err < 0)
517 return -EINVAL; 517 return -EINVAL;
518 518
519 base = devm_ioremap_resource(&pdev->dev, iores); 519 base = devm_ioremap_resource(&pdev->dev, iores);