diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-29 19:22:30 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-29 19:22:30 (GMT) |
commit | 0acbbee440fadf45164cc9537ee7d528d045f2d6 (patch) | |
tree | cbdb4d3f7fa97fd657f2e8e3489591dc444b9f23 /drivers/acpi/bay.c | |
parent | 535e49f48e2fc95a6de8efb366ca8af35d424642 (diff) | |
parent | c4e6a2e64e948de42473e9c829181d768b1258c3 (diff) | |
download | linux-0acbbee440fadf45164cc9537ee7d528d045f2d6.tar.xz |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
dock: bay: Don't call acpi_walk_namespace() when ACPI is disabled.
ACPI: don't walk tables if ACPI was disabled
thermal: Create CONFIG_THERMAL_HWMON=n
Diffstat (limited to 'drivers/acpi/bay.c')
-rw-r--r-- | drivers/acpi/bay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 26038c2..61b6c5b 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; + /* look for dockable drive bays */ acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, find_bay, &bays, NULL); |