diff options
author | Andi Kleen <ak@linux.intel.com> | 2008-07-18 01:43:08 +0200 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2008-07-18 01:43:08 +0200 |
commit | e1469c34eb623cd1945ef09bfd7de7bc2f9ff6b3 (patch) | |
tree | 62fb8380394a0d43575a21e0e8aee40f0c0c3e89 /drivers/acpi | |
parent | b1d77fae0c429d1be84ca0c9e627d9ab0e2a6d0b (diff) | |
download | blackbird-op-linux-e1469c34eb623cd1945ef09bfd7de7bc2f9ff6b3.tar.gz blackbird-op-linux-e1469c34eb623cd1945ef09bfd7de7bc2f9ff6b3.zip |
Revert "dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled."
Revert double commit by mistake. Noticed by Thomas Gleixner.
This reverts commit cc7e51666d82aedfd6b9a033ca1a10d71c21f1ca.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/bay.c | 3 | ||||
-rw-r--r-- | drivers/acpi/dock.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index e6caf5d42e0e..61b6c5beb2d3 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c @@ -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); diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 1e872e79db33..bb7c51f712bd 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -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); |