Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b20d2aeb authored by Len Brown's avatar Len Brown
Browse files

ACPI: skip smart battery init when acpi=off



Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4d8316d5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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