diff --git a/arch/arm/mach-msm/htc_battery.c b/arch/arm/mach-msm/htc_battery.c index ef989184..19f4effb 100644 --- a/arch/arm/mach-msm/htc_battery.c +++ b/arch/arm/mach-msm/htc_battery.c @@ -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;