gpiolib: call pin removal in chip removal function
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Nov 2012 14:15:44 +0000 (15:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 11 Nov 2012 18:06:06 +0000 (19:06 +0100)
commit9ef0d6f7628bdcb5cc3c11623930f2527a3881a0
tree890ee860dbef20b3b4de059f2799ff36f8afaa33
parente93fa3f24353e45b189bae656ba000d0533777a3
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>
drivers/gpio/gpiolib.c