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>
This commit is contained in:
parent
9e3a979f03
commit
1f81bdc7a0
|
@ -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++)
|
||||||
|
|
Loading…
Reference in New Issue