ACPI / battery: abort initialization earlier if acpi_disabled
authorLuis Henriques <luis.henriques@canonical.com>
Mon, 11 May 2015 21:48:38 +0000 (22:48 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 May 2015 22:58:39 +0000 (00:58 +0200)
commite234b074c8ebe736f74cc40a8953accb66b82d04
tree8e118ea838e7707b1ecd64f75ae06ff2d502de11
parent030bbdbf4c833bc69f502eae58498bc5572db736
ACPI / battery: abort initialization earlier if acpi_disabled

If ACPI is disabled there's no need to schedule an async function call,
the driver initialization can be aborted earlier in acpi_battery_init().

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c