diff options
author | Len Brown <len.brown@intel.com> | 2008-06-25 04:57:12 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-06-26 07:55:27 +0200 |
commit | 816c2eda3ce8fa7eb62f22e01e2ec7a3f7d677c0 (patch) | |
tree | fdd957a51fc66dba5d41d80f7d552927f627cff1 /drivers/acpi/dock.c | |
parent | ACPI: don't walk tables if ACPI was disabled (diff) | |
download | linux-816c2eda3ce8fa7eb62f22e01e2ec7a3f7d677c0.tar.xz linux-816c2eda3ce8fa7eb62f22e01e2ec7a3f7d677c0.zip |
dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r-- | drivers/acpi/dock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 96c542f7fded..bb7c51f712bd 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; + /* look for a dock station */ acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, find_dock, &num, NULL); |