diff options
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); |