From: Len Brown Date: Wed, 25 Jun 2008 02:57:12 +0000 (-0400) Subject: dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled. X-Git-Tag: v2.6.27-rc1~1050^2~64 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc7e51666d82aedfd6b9a033ca1a10d71c21f1ca;p=linux-2.6 dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled. Signed-off-by: Len Brown Signed-off-by: Andi Kleen --- diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 61b6c5beb2..e6caf5d42e 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c @@ -377,6 +377,9 @@ static int __init bay_init(void) INIT_LIST_HEAD(&drive_bays); + if (acpi_disabled) + return -ENODEV; + if (acpi_disabled) return -ENODEV; diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index bb7c51f712..1e872e79db 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -917,6 +917,9 @@ static int __init dock_init(void) dock_station = NULL; + if (acpi_disabled) + return 0; + if (acpi_disabled) return 0;