mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
ACPI: skip smart battery init when acpi=off
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
4d8316d5ea
commit
b20d2aeb0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user