diff options
author | Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> | 2010-11-16 17:01:25 +0530 |
---|---|---|
committer | Sundar Iyer <sundar.iyer@stericsson.com> | 2010-11-29 16:47:33 +0530 |
commit | 90e0186b0711cc6a93f01a1db4dbe9621233fe20 (patch) | |
tree | 1659fd793eb586babeb51274d230cf5a677f1d61 /drivers/power | |
parent | c6f050fa38008a47c7b605454f761230bd91f218 (diff) |
Generic:USB:Removing wrong implementation in USB
Removing the wrong function calls in usb which is called by the battery
manager.
ST EricssonID:278744
Change-Id: Ib2db0923dba5b89bc2e05046783a00dbea2e6f54
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8985
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/ab8500_bm.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/power/ab8500_bm.c b/drivers/power/ab8500_bm.c index 1317bff6edc..baa9d72b43d 100644 --- a/drivers/power/ab8500_bm.c +++ b/drivers/power/ab8500_bm.c @@ -906,31 +906,18 @@ void ab8500_bm_usb_state_changed_work(struct work_struct *work) * USB is configured, enable charging with the charging * input current obtained from USB driver */ - if (val == USB_STAT_STD_HOST_C_S) { - /* - * Host charger, was suspended, - * resume first, then charge - */ - ab8500_bm_ulpi_set_char_suspend_mode( - AB8500_BM_USB_STATE_RESUME); - } - complete(&di->ab8500_bm_usb_completed); queue_work(di->ab8500_bm_wq, &di->ab8500_bm_usb_en_monitor_work); break; case AB8500_BM_USB_STATE_SUSPEND: /* USB in suspend state */ - ab8500_bm_ulpi_set_char_suspend_mode( - AB8500_BM_USB_STATE_SUSPEND); queue_work(di->ab8500_bm_wq, &di->ab8500_bm_usb_dis_monitor_work); break; case AB8500_BM_USB_STATE_RESUME: /* USB in resume state */ - ab8500_bm_ulpi_set_char_suspend_mode( - AB8500_BM_USB_STATE_RESUME); /* * when suspend->resume there should be delay * of 1sec for enabling charging |