Commit 546b632e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Wolfram Sang
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
parent 86731a2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -250,7 +250,7 @@ static int i2c_acpi_get_info(struct acpi_device *adev,

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