gpio: gpio-davinci: remove duplicate check on resource
authorVarka Bhadram <varkabhadram@gmail.com>
Tue, 28 Oct 2014 06:37:05 +0000 (12:07 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 31 Oct 2014 08:02:34 +0000 (09:02 +0100)
Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c

index 9f0682534e2f46376a7086bc306cf195cc6e8e6f..3faf5f944ccce4ac6800681e9ad0153c4fcb5e57 100644 (file)
@@ -234,11 +234,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               dev_err(dev, "Invalid memory resource\n");
-               return -EBUSY;
-       }
-
        gpio_base = devm_ioremap_resource(dev, res);
        if (IS_ERR(gpio_base))
                return PTR_ERR(gpio_base);