Merge branch 'for-4.17/hid-i2c' into for-linus

Small hid-i2c acpi cleanup.
This commit is contained in:
Jiri Kosina 2018-04-05 13:18:26 +02:00
commit f73fee743b
1 changed files with 2 additions and 2 deletions

View File

@ -892,10 +892,10 @@ static int i2c_hid_acpi_pdata(struct i2c_client *client,
static void i2c_hid_acpi_fix_up_power(struct device *dev)
{
acpi_handle handle = ACPI_HANDLE(dev);
struct acpi_device *adev;
if (handle && acpi_bus_get_device(handle, &adev) == 0)
adev = ACPI_COMPANION(dev);
if (adev)
acpi_device_fix_up_power(adev);
}