From: Wolfram Sang Date: Mon, 20 May 2013 16:39:40 +0000 (+0900) Subject: ARM: SAMSUNG: don't check resource with devm_ioremap_resource X-Git-Tag: next-20130521~7^2~6^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b02b99b1a19835f3f7120ed9fa86ee4db48a242;p=karo-tx-linux.git ARM: SAMSUNG: 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 Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c index ca07cb1b155a..79690f2f6d3f 100644 --- a/arch/arm/plat-samsung/adc.c +++ b/arch/arm/plat-samsung/adc.c @@ -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);