diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-07-23 20:01:50 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-24 16:23:15 +0200 |
commit | e5d950f024c05749da9cd64765b3daa0e2229f9f (patch) | |
tree | 8e83cea982abdd867f31716b3fe2f202237a5ee9 /drivers/spi/spi-bcm2835.c | |
parent | Linux 3.11-rc2 (diff) | |
download | linux-e5d950f024c05749da9cd64765b3daa0e2229f9f.tar.xz linux-e5d950f024c05749da9cd64765b3daa0e2229f9f.zip |
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) init_completion(&bs->done); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "could not get memory resource\n"); - err = -ENODEV; - goto out_master_put; - } - bs->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(bs->regs)) { err = PTR_ERR(bs->regs); |