Skip to content

Commit

Permalink
dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled.
Browse files Browse the repository at this point in the history
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Len Brown committed Jun 26, 2008
1 parent 4389ed2 commit 816c2ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/bay.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ static int __init bay_init(void)

INIT_LIST_HEAD(&drive_bays);

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);
Expand Down
3 changes: 3 additions & 0 deletions drivers/acpi/dock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 816c2ed

Please sign in to comment.