Commit b20d2aeb authored by Len Brown's avatar Len Brown

ACPI: skip smart battery init when acpi=off

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4d8316d5
...@@ -1714,6 +1714,9 @@ static int __init acpi_sbs_init(void) ...@@ -1714,6 +1714,9 @@ static int __init acpi_sbs_init(void)
{ {
int result = 0; int result = 0;
if (acpi_disabled)
return -ENODEV;
init_MUTEX(&sbs_sem); init_MUTEX(&sbs_sem);
if (capacity_mode != DEF_CAPACITY_UNIT if (capacity_mode != DEF_CAPACITY_UNIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment