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 <andriy.shevchenko@linux.intel.com> Tested-by: Benjamin Tissoires <bentiss@kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
59a4a3512c
commit
067dbc1ea5
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ static bool acpi_gpio_deferred_req_irqs_done;
|
||||||
|
|
||||||
static int acpi_gpiochip_find(struct gpio_chip *gc, void *data)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue