power: tps80031-battery: Exit driver if battery is not detected
authorsyed rafiuddin <srafiuddin@nvidia.com>
Fri, 7 Oct 2011 08:46:40 +0000 (13:46 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:50:15 +0000 (21:50 -0800)
commit5dc7e80087f5176331f912584459c03427b15ccb
treeba2348479b39f1ad33a35419bab4f977bb12c1dc
parent014d6c9847cd1530c4e449ae497cc0307357c0e9
power: tps80031-battery: Exit driver if battery is not detected

Exit fuel-gauge driver if battery presence is not detected.

bug 873965

Reviewed-on: http://git-master/r/61830
(cherry picked from commit 149469646e1e5e7ece787ef9546de60a97b46802)

Change-Id: I00139f1a92822875fb1409a918c580b83d4789f0
Reviewed-on: http://git-master/r/64090
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rebb08c9d9cbe6a3bb2a3bcaf4cc89beceb55c480
drivers/power/tps80031_battery_gauge.c
include/linux/mfd/tps80031.h