Merge branch 'for-4.17/hid-i2c' into for-linus
Small hid-i2c acpi cleanup.
This commit is contained in:
commit
f73fee743b
@ -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)
|
static void i2c_hid_acpi_fix_up_power(struct device *dev)
|
||||||
{
|
{
|
||||||
acpi_handle handle = ACPI_HANDLE(dev);
|
|
||||||
struct acpi_device *adev;
|
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);
|
acpi_device_fix_up_power(adev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user