Revert "gpiolib: Fix GPIO chip IRQ initialization restriction"

This reverts commit 75aa3f255c which is
commit 8c00914e5438e3636f26b4f814b3297ae2a1b9ee upstream.

It breaks the Android api, so revert it for now.  If it needs to come
back, it can do so in an abi-safe way.

Bug: 161946584
Change-Id: Ic6c0f3eda15a05d292fa047430a900682505fa64
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2023-06-30 12:44:42 +00:00
parent 02a1b32243
commit fc3985cbee

View File

@ -1793,14 +1793,6 @@ int gpiochip_irqchip_add_domain(struct gpio_chip *gc,
gc->to_irq = gpiochip_to_irq;
gc->irq.domain = domain;
/*
* Using barrier() here to prevent compiler from reordering
* gc->irq.initialized before adding irqdomain.
*/
barrier();
gc->irq.initialized = true;
return 0;
}
EXPORT_SYMBOL_GPL(gpiochip_irqchip_add_domain);