diff options
| author | Holger Macht <[email protected]> | 2008-02-14 12:40:34 +0000 |
|---|---|---|
| committer | Len Brown <[email protected]> | 2008-02-21 12:25:47 +0000 |
| commit | 3b5fee5952ff7eb6ff7a64247a01040b8b331b74 (patch) | |
| tree | c73dfebf4d1df7ccde64420437f56f0e872fa9c6 /drivers/acpi/scan.c | |
| parent | FRV: Change the timerfd syscalls to be the same as i386 (diff) | |
| download | kernel-3b5fee5952ff7eb6ff7a64247a01040b8b331b74.tar.gz kernel-3b5fee5952ff7eb6ff7a64247a01040b8b331b74.zip | |
ACPI: Do not pass NULL to acpi_get_handle() when looking for _EJD
When trying to get the acpi_handle from an acpi_buffer, pass
ACPI_ROOT_OBJECT instead of NULL to acpi_get_handle(). This fixes the
detection of dock dependent bays.
Signed-off-by: Holger Macht <[email protected]>
Tested-by: Thomas Renninger <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'drivers/acpi/scan.c')
| -rw-r--r-- | drivers/acpi/scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3fac011f9cf9..d9b914303b9c 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -609,7 +609,8 @@ acpi_bus_get_ejd(acpi_handle handle, acpi_handle *ejd) status = acpi_evaluate_object(handle, "_EJD", NULL, &buffer); if (ACPI_SUCCESS(status)) { obj = buffer.pointer; - status = acpi_get_handle(NULL, obj->string.pointer, ejd); + status = acpi_get_handle(ACPI_ROOT_OBJECT, obj->string.pointer, + ejd); kfree(buffer.pointer); } return status; |
