power: qpnp-fg: skip return from alarm_start_relative
The 4.4 kernel changes alarm_start_relative() to return void. Update the qpnp-fg driver to skip checking the return value. Change-Id: I607d341875a73ce326244d6864a4f3f3e32099ed Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
parent
0324b74b39
commit
a6fceb4732
1 changed files with 1 additions and 6 deletions
|
@ -3191,13 +3191,8 @@ static int fg_cap_learning_check(struct fg_chip *chip)
|
|||
pr_info("cap learning started, soc = %d cc_uah = %lld\n",
|
||||
battery_soc * 100 / FULL_PERCENT_3B,
|
||||
chip->learning_data.cc_uah);
|
||||
rc = alarm_start_relative(&chip->fg_cap_learning_alarm,
|
||||
alarm_start_relative(&chip->fg_cap_learning_alarm,
|
||||
ns_to_ktime(FG_CAP_LEARNING_INTERVAL_NS));
|
||||
if (rc) {
|
||||
pr_err("Failed to start alarm: %d\n", rc);
|
||||
fg_cap_learning_stop(chip);
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
} else if ((chip->status != POWER_SUPPLY_STATUS_CHARGING)
|
||||
&& chip->learning_data.active) {
|
||||
|
|
Loading…
Add table
Reference in a new issue