ACPI: skip smart battery init when acpi=off

Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Len Brown 2006-08-15 23:21:37 -04:00
parent 4d8316d5ea
commit b20d2aeb0a
1 changed files with 3 additions and 0 deletions

View File

@ -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