ACPI / SBS: Enable battery manager when present
authorChris Bainbridge <chris.bainbridge@gmail.com>
Wed, 22 Apr 2015 15:40:21 +0000 (16:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Apr 2015 22:04:29 +0000 (00:04 +0200)
commit61f8ff693923e4b19748b0e8287b99778f2661c7
treecef0ee9f6afae2261a32cc93dfbbd552da5106ae
parentb787f68c36d49bb1d9236f403813641efa74a031
ACPI / SBS: Enable battery manager when present

Commit 9faf6136ff46 (ACPI / SBS: Disable smart battery manager on
Apple) introduced a regression disabling the SBS battery manager.
The battery manager should be marked as present when
acpi_manager_get_info() returns 0.

Fixes: 9faf6136ff46 (ACPI / SBS: Disable smart battery manager on Apple)
Signed-off-by: Chris Bainbridge <chris.bainbridge@gmail.com>
Cc: 3.18+ <stable@vger.kernel.org> # 3.18+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sbs.c