power: tps80031-battery: Exit driver if battery is not detected
syed rafiuddin [Fri, 7 Oct 2011 08:46:40 +0000 (13:46 +0530)]
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: R5dce5151c2364519a4a7e58ae4cbb2b94126fe9b

include/linux/mfd/tps80031.h

index 731dd07..0be3424 100644 (file)
@@ -155,6 +155,7 @@ struct tps80031_platform_data {
 
 struct tps80031_bg_platform_data {
        int irq_base;
+       int battery_present;
 };
 
 /*