Re: [PATCH v2 4/4] platform/x86: x86-android-tablets: enable fwnode matching of GPIO chips

From: Bartosz Golaszewski

Date: Mon Apr 27 2026 - 07:35:27 EST


On Sat, Apr 4, 2026 at 8:25 PM Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
>
> > +
> > +static void auto_secondary_unregister_notifier(void *data)
> > +{
> > + struct notifier_block *nb = data;
> > +
> > + bus_unregister_notifier(&acpi_bus_type, nb);
> > +}
>
> Instead of exporting acpi_bus_type in the previous patch and defining
> this function here, can you define
>
> void acpi_bus_unregister_notifier(void *data)
> {
> struct notifier_block *nb = data;
>
> bus_unregister_notifier(&acpi_bus_type, nb);
> }
>
> in the previous patch and use it here?
>

Not really because we still need to call bus_find_device_by_name(). I
think it's better to just export this one symbol than to add three new
ones.

Bart