summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorLin Fuzhen <fuzhen.lin@freescale.com>2012-06-19 16:24:45 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:38:56 +0800
commit5797a97df2aaeda287a42fa57076330b0b00faef (patch)
treef87b15f6e8b7b3130135e687698c78337b162786 /drivers/power
parent2e3d2d8896173631a3e21f486292259efc42a2c3 (diff)
ENGR00214081-2 PM: Remove unused code in battery driver
Remove some unused code in battery driver Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
Diffstat (limited to 'drivers/power')
-rwxr-xr-xdrivers/power/sabresd_battery.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/power/sabresd_battery.c b/drivers/power/sabresd_battery.c
index 21294fb8311a..88fe30791dfb 100755
--- a/drivers/power/sabresd_battery.c
+++ b/drivers/power/sabresd_battery.c
@@ -299,11 +299,7 @@ static int max8903_battery_get_property(struct power_supply *bat,
default:
break;
}
- if (!last || time_after(jiffies, last + HZ / 2)) {
- last = jiffies;
- max8903_charger_update_status(di);
- max8903_battery_update_status(di);
- }
+
switch (psp) {
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
val->intval = di->voltage_uV;
@@ -714,6 +710,9 @@ static __devinit int max8903_probe(struct platform_device *pdev)
offset_discharger = 1464;
offset_charger = 1485;
}
+
+ max8903_charger_update_status(data);
+ max8903_battery_update_status(data);
return 0;
err_psy:
power_supply_unregister(&data->psy);