diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-07-23 14:01:50 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-24 10:23:15 -0400 |
commit | e5d950f024c05749da9cd64765b3daa0e2229f9f (patch) | |
tree | 8e83cea982abdd867f31716b3fe2f202237a5ee9 /drivers/spi/spi-bcm2835.c | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) |
spi: bcm2835: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-bcm2835.c')
-rw-r--r-- | drivers/spi/spi-bcm2835.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index a4185e492321..7604c5204862 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c | |||
@@ -325,12 +325,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev) | |||
325 | init_completion(&bs->done); | 325 | init_completion(&bs->done); |
326 | 326 | ||
327 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 327 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
328 | if (!res) { | ||
329 | dev_err(&pdev->dev, "could not get memory resource\n"); | ||
330 | err = -ENODEV; | ||
331 | goto out_master_put; | ||
332 | } | ||
333 | |||
334 | bs->regs = devm_ioremap_resource(&pdev->dev, res); | 328 | bs->regs = devm_ioremap_resource(&pdev->dev, res); |
335 | if (IS_ERR(bs->regs)) { | 329 | if (IS_ERR(bs->regs)) { |
336 | err = PTR_ERR(bs->regs); | 330 | err = PTR_ERR(bs->regs); |