]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: save device_type in acpi_device
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 21 Sep 2009 19:29:10 +0000 (19:29 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 25 Sep 2009 18:24:25 +0000 (14:24 -0400)
commit80c62f84f177d799e829ef5c5df28d990bc2dad2
tree43e7cdc207c3f9b091bfbd638d4e98fe81a5a113
parent53256972399906a0ec3a98497cb9a8aa1f912a43
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 <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c
include/acpi/acpi_bus.h