power: max17048: fix power polling at resume
Chandler Zhang [Fri, 13 Jul 2012 09:01:38 +0000 (17:01 +0800)]
The state of charing is not correct because of the 1 sec delay.
Remove the delay to fix the issue.

Bug 1016683

Change-Id: I389970e32d34578bb1ec1f2019d78145f250a673
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/115632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/power/max17048_battery.c

index c65855f..770d5bc 100644 (file)
@@ -592,7 +592,7 @@ static int max17048_resume(struct i2c_client *client)
                return ret;
        }
 
-       schedule_delayed_work(&chip->work, MAX17048_DELAY);
+       schedule_work(&chip->work);
        return 0;
 }