Skip to content

Commit 64ebf87

Browse files
andy-shevgregkh
authored andcommitted
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>
1 parent ddab72e commit 64ebf87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serdev/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ static int acpi_serdev_check_resources(struct serdev_controller *ctrl,
665665
acpi_get_parent(adev->handle, &lookup.controller_handle);
666666

667667
/* Make sure controller and ResourceSource handle match */
668-
if (ACPI_HANDLE(ctrl->dev.parent) != lookup.controller_handle)
668+
if (!device_match_acpi_handle(ctrl->dev.parent, lookup.controller_handle))
669669
return -ENODEV;
670670

671671
return 0;

0 commit comments

Comments
 (0)