htcleo: fixed AC charging on boot and cleanups

This commit is contained in:
Markinus 2011-03-08 22:48:18 +01:00 committed by tytung
parent 1b4ec557f5
commit ba5148a6fb

View File

@ -224,9 +224,6 @@ void notify_cable_status(int status)
{
pr_info("notify_cable_status(%d)\n", status);
msm_hsusb_set_vbus_state(status);
power_supply_changed(&htc_power_supplies[CHARGER_USB]);
power_supply_changed(&htc_power_supplies[CHARGER_AC]);
power_supply_changed(&htc_power_supplies[CHARGER_BATTERY]);
}
// called from DEX intrrupt
@ -1709,7 +1706,7 @@ static int htc_battery_probe(struct platform_device *pdev)
{
int rc = 0;
struct htc_battery_platform_data *pdata = pdev->dev.platform_data;
pr_info("HTC Battery Probe\n");
htc_batt_info.device_id = pdev->id;
htc_batt_info.gpio_usb_id = pdata->gpio_usb_id;
htc_batt_info.gpio_power = pdata->gpio_power;
@ -1758,7 +1755,7 @@ static int htc_battery_probe(struct platform_device *pdev)
#if defined(CONFIG_MACH_HTCLEO)
if(pdata->force_no_rpc) {
htc_battery_core_probe(pdev);
htc_cable_status_update(get_vbus_state());
msm_hsusb_set_vbus_state(get_vbus_state());
}
#endif
return 0;