mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
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 <[email protected]> Reviewed-by: Viresh Kumar <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user