]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: SAMSUNG: don't check resource with devm_ioremap_resource
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 May 2013 16:39:40 +0000 (01:39 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 20 May 2013 16:39:40 +0000 (01:39 +0900)
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: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/adc.c

index ca07cb1b155a702ce5e3c0cc0de74cfc5a5fe3a4..79690f2f6d3f8a5164495c7758b392cc43bae268 100644 (file)
@@ -381,11 +381,6 @@ static int s3c_adc_probe(struct platform_device *pdev)
        }
 
        regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!regs) {
-               dev_err(dev, "failed to find registers\n");
-               return -ENXIO;
-       }
-
        adc->regs = devm_ioremap_resource(dev, regs);
        if (IS_ERR(adc->regs))
                return PTR_ERR(adc->regs);