gpiolib: acpi: Replace custom code with device_match_acpi_handle()
Since driver core provides a generic device_match_acpi_handle() we may replace the custom code with it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lore.kernel.org/r/20211014134756.39092-3-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0a2d47aa32
commit
adb5151fa8
1 changed files with 1 additions and 4 deletions
|
@ -95,10 +95,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)
|
||||||
{
|
{
|
||||||
if (!gc->parent)
|
return gc->parent && device_match_acpi_handle(gc->parent, data);
|
||||||
return false;
|
|
||||||
|
|
||||||
return ACPI_HANDLE(gc->parent) == data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue