Message ID | 20230309-fix-acpi-gpio-v2-1-9eb20a1fd42c@redhat.com |
---|---|
State | Accepted |
Commit | 5062e4c14b752a21aa24d6500ace6e251fde1d7c |
Headers | show |
Series | [v2] gpiolib: acpi: use the fwnode in acpi_gpiochip_find() | expand |
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index d8a421ce26a8..5aebc266426b 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -126,7 +126,7 @@ static bool acpi_gpio_deferred_req_irqs_done; static int acpi_gpiochip_find(struct gpio_chip *gc, void *data) { - return gc->parent && device_match_acpi_handle(gc->parent, data); + return ACPI_HANDLE_FWNODE(gc->fwnode) == data; } /**