Browse Source

pinctrl: adi2: Remove duplicate gpiochip_remove_pin_ranges

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>
Pramod Gurav 11 years ago
parent
commit
1f81bdc7a0
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/pinctrl/pinctrl-adi2.c

+ 0 - 1
drivers/pinctrl/pinctrl-adi2.c

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