diff options
author | Pramod Gurav <pramod.gurav@smartplayin.com> | 2014-08-30 23:05:13 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-05 10:33:51 +0200 |
commit | 1f81bdc7a08e7aee271a4969f451207fd7946894 (patch) | |
tree | d8c5327e9b6e0053adc2ea7edb957948486098c4 /drivers/pinctrl/pinctrl-adi2.c | |
parent | 9e3a979f03b37b8502da6cfce8581e28375cf96f (diff) | |
download | lwn-1f81bdc7a08e7aee271a4969f451207fd7946894.tar.gz lwn-1f81bdc7a08e7aee271a4969f451207fd7946894.zip |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-adi2.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-adi2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c index e02943b0285d..8434439c5017 100644 --- a/drivers/pinctrl/pinctrl-adi2.c +++ b/drivers/pinctrl/pinctrl-adi2.c @@ -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++) |