APCI: revert duplicated patch
authorThomas Gleixner <tglx@linutronix.de>
Thu, 17 Jul 2008 23:11:38 +0000 (01:11 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 21 Jul 2008 00:14:57 +0000 (17:14 -0700)
commit 816c2eda3ce8fa7eb62f22e01e2ec7a3f7d677c0 ("dock: bay: Don't call
acpi_walk_namespace() when ACPI is disabled.") was merged between
2.6.26-rc8 and -rc9)

Due to rebasing the ACPI tree via quilt the same patch got applied again
via commit cc7e51666d82aedfd6b9a033ca1a10d71c21f1ca ("dock: bay: Don't
call acpi_walk_namespace() when ACPI is disabled.")

Revert it, as it is obviously bogus.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/bay.c
drivers/acpi/dock.c

index e6caf5d..61b6c5b 100644 (file)
@@ -380,9 +380,6 @@ static int __init bay_init(void)
        if (acpi_disabled)
                return -ENODEV;
 
-       if (acpi_disabled)
-               return -ENODEV;
-
        /* look for dockable drive bays */
        acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
                ACPI_UINT32_MAX, find_bay, &bays, NULL);
index 1e872e7..bb7c51f 100644 (file)
@@ -920,9 +920,6 @@ static int __init dock_init(void)
        if (acpi_disabled)
                return 0;
 
-       if (acpi_disabled)
-               return 0;
-
        /* look for a dock station */
        acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
                            ACPI_UINT32_MAX, find_dock, &num, NULL);