diff options
author | 2023-10-24 15:41:15 +0300 | |
---|---|---|
committer | 2023-10-27 13:04:11 +0200 | |
commit | 64ebf8797249e792af2143eb9e4bd404d10a022e (patch) | |
tree | 3b59e28ffe359a53963096385e24a9baf7a8a82a /drivers/tty/serdev | |
parent | serdev: Simplify devm_serdev_device_open() function (diff) | |
download | linux-64ebf8797249e792af2143eb9e4bd404d10a022e.tar.gz linux-64ebf8797249e792af2143eb9e4bd404d10a022e.tar.bz2 linux-64ebf8797249e792af2143eb9e4bd404d10a022e.zip |
serdev: 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>
Link: https://lore.kernel.org/r/20231024124115.3598090-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serdev')
-rw-r--r-- | drivers/tty/serdev/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index 6a1e75f98f16..a5fdaf5e148e 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -665,7 +665,7 @@ static int acpi_serdev_check_resources(struct serdev_controller *ctrl, acpi_get_parent(adev->handle, &lookup.controller_handle); /* Make sure controller and ResourceSource handle match */ - if (ACPI_HANDLE(ctrl->dev.parent) != lookup.controller_handle) + if (!device_match_acpi_handle(ctrl->dev.parent, lookup.controller_handle)) return -ENODEV; return 0; |