Skip to content

Commit

Permalink
ACPI: skip smart battery init when acpi=off
Browse files Browse the repository at this point in the history
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Len Brown committed Aug 16, 2006
1 parent 4d8316d commit b20d2ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/sbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b20d2ae

Please sign in to comment.