]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: adi2: Remove duplicate gpiochip_remove_pin_ranges
authorPramod Gurav <pramod.gurav@smartplayin.com>
Sat, 30 Aug 2014 17:35:13 +0000 (23:05 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 5 Sep 2014 08:33:51 +0000 (10:33 +0200)
This patch removes call to gpiochip_remove_pin_ranges() from
platform_driver remove function as it will anway be called
by gpiochip_remove().

CC: Sonic Zhang <sonic.zhang@analog.com>
CC: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-adi2.c

index e02943b0285d08bbb2cb65f4ab3d79692883c809..8434439c5017ac67fe6496bf446081ce73c35a92 100644 (file)
@@ -1041,7 +1041,6 @@ static int adi_gpio_remove(struct platform_device *pdev)
        u8 offset;
 
        list_del(&port->node);
-       gpiochip_remove_pin_ranges(&port->chip);
        gpiochip_remove(&port->chip);
        if (port->pint) {
                for (offset = 0; offset < port->width; offset++)