]> err.no Git - linux-2.6/commitdiff
ACPI: Do not pass NULL to acpi_get_handle() when looking for _EJD
authorHolger Macht <hmacht@suse.de>
Thu, 14 Feb 2008 12:40:34 +0000 (13:40 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 21 Feb 2008 12:25:47 +0000 (07:25 -0500)
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 <hmacht@suse.de>
Tested-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c

index 3fac011f9cf964082b463ef20913542ca9bce173..d9b914303b9c0468e9c1dd2f7a41f40b18ffffda 100644 (file)
@@ -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;