Commit 69a6f5d9 authored by Serge Semin's avatar Serge Semin Committed by Linus Walleij

gpio: dwapb: Discard ACPI GPIO-chip IRQs request

Since GPIOlib-based IRQ-chip interface is now utilized there is no need
in calling the methods acpi_gpiochip_{request,free}_interrupts() here.
They will be called from gpiochip_add_irqchip()/gpiochip_irqchip_remove()
anyway.
Signed-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200730152808.2955-8-Sergey.Semin@baikalelectronics.ruSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ca4cf5ea
...@@ -526,9 +526,6 @@ static int dwapb_gpio_add_port(struct dwapb_gpio *gpio, ...@@ -526,9 +526,6 @@ static int dwapb_gpio_add_port(struct dwapb_gpio *gpio,
return err; return err;
} }
/* Add GPIO-signaled ACPI event support */
acpi_gpiochip_request_interrupts(&port->gc);
port->is_registered = true; port->is_registered = true;
return 0; return 0;
...@@ -544,7 +541,6 @@ static void dwapb_gpio_unregister(struct dwapb_gpio *gpio) ...@@ -544,7 +541,6 @@ static void dwapb_gpio_unregister(struct dwapb_gpio *gpio)
if (!port->is_registered) if (!port->is_registered)
continue; continue;
acpi_gpiochip_free_interrupts(&port->gc);
gpiochip_remove(&port->gc); gpiochip_remove(&port->gc);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment