From: Andy Shevchenko Date: Mon, 3 Jul 2023 14:23:07 +0000 (+0300) Subject: gpiolib: acpi: Don't use GPIO chip fwnode in acpi_gpiochip_find() X-Git-Tag: v6.6-rc1~164^2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067dbc1ea5ce61ba174d0c5f2e375defe4d562e6;p=thirdparty%2Flinux.git gpiolib: acpi: Don't use GPIO chip fwnode in acpi_gpiochip_find() GPIO library should rely only on the GPIO device's fwnode. Hence, replace GPIO chip fwnode usage by respective handle of the GPIO device. Signed-off-by: Andy Shevchenko Tested-by: Benjamin Tissoires Reviewed-by: Linus Walleij Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 97496c0f91330..fbda452fb4d6a 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -128,7 +128,7 @@ static bool acpi_gpio_deferred_req_irqs_done; static int acpi_gpiochip_find(struct gpio_chip *gc, void *data) { - return ACPI_HANDLE_FWNODE(gc->fwnode) == data; + return device_match_acpi_handle(&gc->gpiodev->dev, data); } /**