Message ID | 20221114184626.64214-2-andriy.shevchenko@linux.intel.com |
---|---|
State | Accepted |
Commit | a431803852de00d8d3c143b19f5690254225538f |
Headers | show |
Series | [v2,1/2] gpiolib: of: Prepare of_mm_gpiochip_add_data() for fwnode | expand |
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index d30a5210dfdd..f96cb6fe6831 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -962,9 +962,6 @@ void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) { struct gpio_chip *gc = &mm_gc->gc; - if (!mm_gc) - return; - gpiochip_remove(gc); iounmap(mm_gc->regs); kfree(gc->label);