mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ACPI: save device_type in acpi_device
Most uses of the ACPI bus device_type (ACPI_BUS_TYPE_DEVICE, ACPI_BUS_TYPE_POWER, etc) are during device initialization, but we do need it later for notify handler installation, since that is different for fixed hardware devices vs. namespace devices. This patch saves the device_type in the acpi_device structure, so we can check that rather than comparing against the _HID string. Signed-off-by: Bjorn Helgaas <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
66b7ed40aa
commit
caaa6efb3d
2 changed files with 3 additions and 1 deletions
|
|
@ -1240,6 +1240,7 @@ acpi_add_single_object(struct acpi_device **child,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
device->device_type = type;
|
||||
device->handle = handle;
|
||||
device->parent = parent;
|
||||
device->bus_ops = *ops; /* workround for not call .start */
|
||||
|
|
|
|||
Loading…
Reference in a new issue