projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled.
[deliverable/linux.git]
/
drivers
/
acpi
/
bay.c
diff --git
a/drivers/acpi/bay.c
b/drivers/acpi/bay.c
index 26038c2a2a71bb20026a0631e890b6d57705805e..61b6c5beb2d347d32d1fe1e3ee1ff8195e5f731d 100644
(file)
--- 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;
+
/* look for dockable drive bays */
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
ACPI_UINT32_MAX, find_bay, &bays, NULL);
This page took
0.023388 seconds
and
5
git commands to generate.