diff options
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 8fbc67a88465..3707930e082e 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -1266,11 +1266,12 @@ int gpiochip_remove(struct gpio_chip *chip) | |||
1266 | int status = 0; | 1266 | int status = 0; |
1267 | unsigned id; | 1267 | unsigned id; |
1268 | 1268 | ||
1269 | acpi_gpiochip_remove(chip); | ||
1270 | |||
1269 | spin_lock_irqsave(&gpio_lock, flags); | 1271 | spin_lock_irqsave(&gpio_lock, flags); |
1270 | 1272 | ||
1271 | gpiochip_remove_pin_ranges(chip); | 1273 | gpiochip_remove_pin_ranges(chip); |
1272 | of_gpiochip_remove(chip); | 1274 | of_gpiochip_remove(chip); |
1273 | acpi_gpiochip_remove(chip); | ||
1274 | 1275 | ||
1275 | for (id = 0; id < chip->ngpio; id++) { | 1276 | for (id = 0; id < chip->ngpio; id++) { |
1276 | if (test_bit(FLAG_REQUESTED, &chip->desc[id].flags)) { | 1277 | if (test_bit(FLAG_REQUESTED, &chip->desc[id].flags)) { |