]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: add acpi_bus_get_status_handle()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 21 Sep 2009 19:30:01 +0000 (19:30 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 25 Sep 2009 18:24:30 +0000 (14:24 -0400)
commit83961a3ddbad3f3da11136873d3e9813768b4852
treeee08b782ad49532e52712c077333ee88a042019c
parent6a954412299a417898b7864d59c9027fddb38ccb
ACPI: add acpi_bus_get_status_handle()

Add acpi_bus_get_status_handle() so we can get the status of a namespace
object before building a struct acpi_device.

This removes a use of "device->flags.dynamic_status", a cached indicator of
whether _STA exists.  It seems simpler and more reliable to just evaluate
_STA and catch AE_NOT_FOUND errors.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bus.c
include/acpi/acpi_bus.h