diff options
| -rw-r--r-- | drivers/gpio/gpiolib-of.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 7cfdc2278905..604dbe60bdee 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c | |||
| @@ -307,7 +307,5 @@ void of_gpiochip_add(struct gpio_chip *chip) | |||
| 307 | void of_gpiochip_remove(struct gpio_chip *chip) | 307 | void of_gpiochip_remove(struct gpio_chip *chip) |
| 308 | { | 308 | { |
| 309 | gpiochip_remove_pin_ranges(chip); | 309 | gpiochip_remove_pin_ranges(chip); |
| 310 | 310 | of_node_put(chip->of_node); | |
| 311 | if (chip->of_node) | ||
| 312 | of_node_put(chip->of_node); | ||
| 313 | } | 311 | } |
