summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sbs.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2006-08-16 05:21:37 +0200
committerLen Brown <len.brown@intel.com>2006-08-16 05:21:37 +0200
commitb20d2aeb0ad322cbe7fd9120acae6118231b17a3 (patch)
treec74ff2ae136371b83a673c0aaf297cdc609e1b80 /drivers/acpi/sbs.c
parentACPI: fix boot with acpi=off (diff)
downloadlinux-b20d2aeb0ad322cbe7fd9120acae6118231b17a3.tar.xz
linux-b20d2aeb0ad322cbe7fd9120acae6118231b17a3.zip
ACPI: skip smart battery init when acpi=off
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sbs.c')
-rw-r--r--drivers/acpi/sbs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index db7b350a5035..62bef0b3b614 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -1714,6 +1714,9 @@ static int __init acpi_sbs_init(void)
{
int result = 0;
+ if (acpi_disabled)
+ return -ENODEV;
+
init_MUTEX(&sbs_sem);
if (capacity_mode != DEF_CAPACITY_UNIT