diff options
author | Jiri Kosina <jkosina@suse.cz> | 2018-04-05 07:18:26 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-04-05 07:18:26 -0400 |
commit | f73fee743b5c44abc217f957a13fe0721c89450b (patch) | |
tree | 820697f5673bda9040b289ae07034c367479124f /drivers/hid/i2c-hid | |
parent | 7a8c1c4e71e4c694e2c9a05f565dd5dac43faa40 (diff) | |
parent | 8afede123bc15417656890ac3aafac3f2d6539a4 (diff) |
Merge branch 'for-4.17/hid-i2c' into for-linus
Small hid-i2c acpi cleanup.
Diffstat (limited to 'drivers/hid/i2c-hid')
-rw-r--r-- | drivers/hid/i2c-hid/i2c-hid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c index e6f413a2b1e9..97689e98e53f 100644 --- a/drivers/hid/i2c-hid/i2c-hid.c +++ b/drivers/hid/i2c-hid/i2c-hid.c | |||
@@ -892,10 +892,10 @@ static int i2c_hid_acpi_pdata(struct i2c_client *client, | |||
892 | 892 | ||
893 | static void i2c_hid_acpi_fix_up_power(struct device *dev) | 893 | static void i2c_hid_acpi_fix_up_power(struct device *dev) |
894 | { | 894 | { |
895 | acpi_handle handle = ACPI_HANDLE(dev); | ||
896 | struct acpi_device *adev; | 895 | struct acpi_device *adev; |
897 | 896 | ||
898 | if (handle && acpi_bus_get_device(handle, &adev) == 0) | 897 | adev = ACPI_COMPANION(dev); |
898 | if (adev) | ||
899 | acpi_device_fix_up_power(adev); | 899 | acpi_device_fix_up_power(adev); |
900 | } | 900 | } |
901 | 901 | ||