diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-11-06 15:15:44 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-11 19:06:06 +0100 |
commit | 9ef0d6f7628bdcb5cc3c11623930f2527a3881a0 (patch) | |
tree | 890ee860dbef20b3b4de059f2799ff36f8afaa33 /drivers/gpio/gpiolib.c | |
parent | e93fa3f24353e45b189bae656ba000d0533777a3 (diff) | |
download | kernel_goldelico_gta04-9ef0d6f7628bdcb5cc3c11623930f2527a3881a0.zip kernel_goldelico_gta04-9ef0d6f7628bdcb5cc3c11623930f2527a3881a0.tar.gz kernel_goldelico_gta04-9ef0d6f7628bdcb5cc3c11623930f2527a3881a0.tar.bz2 |
gpiolib: call pin removal in chip removal function
This makes us call gpiochio_remove_pin_ranges() in the
gpiochip_remove() function, so we get rid of ranges when
freeing the chip.
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 1e1a7ca..bcf9b99 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1127,6 +1127,7 @@ int gpiochip_remove(struct gpio_chip *chip) spin_lock_irqsave(&gpio_lock, flags); + gpiochip_remove_pin_ranges(chip); of_gpiochip_remove(chip); for (id = chip->base; id < chip->base + chip->ngpio; id++) { |