gpio: clps711x: Remove board support
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 4 Jun 2016 07:10:12 +0000 (10:10 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Jun 2016 08:49:58 +0000 (10:49 +0200)
Since board support for the CLPS711X platform was removed,
remove the board support from the driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-clps711x.c

index cd3781e5622f5a0458859f79ec6e37f63b354263..52fd63f021340b37955429d1ae1c9c4459e3467d 100644 (file)
@@ -20,8 +20,12 @@ static int clps711x_gpio_probe(struct platform_device *pdev)
        void __iomem *dat, *dir;
        struct gpio_chip *gc;
        struct resource *res;
-       int err, id = np ? of_alias_get_id(np, "gpio") : pdev->id;
+       int err, id;
 
+       if (!np)
+               return -ENODEV;
+
+       id = of_alias_get_id(np, "gpio");
        if ((id < 0) || (id > 4))
                return -ENODEV;
 
@@ -63,7 +67,7 @@ static int clps711x_gpio_probe(struct platform_device *pdev)
                break;
        }
 
-       gc->base = id * 8;
+       gc->base = -1;
        gc->owner = THIS_MODULE;
        platform_set_drvdata(pdev, gc);