Skip to content

Commit 546b632

Browse files
andy-shevWolfram Sang
authored andcommitted
i2c: 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 <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 86731a2 commit 546b632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/i2c-core-acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int i2c_acpi_get_info(struct acpi_device *adev,
250250

251251
if (adapter) {
252252
/* The adapter must match the one in I2cSerialBus() connector */
253-
if (ACPI_HANDLE(&adapter->dev) != lookup.adapter_handle)
253+
if (!device_match_acpi_handle(&adapter->dev, lookup.adapter_handle))
254254
return -ENODEV;
255255
} else {
256256
struct acpi_device *adapter_adev;

0 commit comments

Comments
 (0)