power: pm8921-charger: enable unplug_check for PC USB

For some platforms disabling the input voltage
regulation is not sufficent to prevent unplug events
from going unnoticed.

Fix this by making sure the unplug_check_worker
is also running when a PC USB connection with
a current limit of 500 mA is set.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
This commit is contained in:
Ajay Dudani 2012-09-13 19:05:24 -07:00 committed by Iliyan Malchev
parent 7ef4e8f7db
commit 067e93a522

View file

@ -2728,11 +2728,6 @@ static void unplug_check_worker(struct work_struct *work)
pr_info("usb_now=%d, usb_target = %d\n",
usb_ma, 500);
goto check_again_later;
} else if (usb_ma == 500) {
pr_info("Stopping Unplug Check Worker"
" USB == 500mA\n");
disable_input_voltage_regulation(chip);
return;
}
if (usb_ma <= 100) {