diff --git a/drivers/power/supply/qcom/smb1398-charger.c b/drivers/power/supply/qcom/smb1398-charger.c index 7a0e87aefecf..e57c1c9636bb 100644 --- a/drivers/power/supply/qcom/smb1398-charger.c +++ b/drivers/power/supply/qcom/smb1398-charger.c @@ -2284,7 +2284,7 @@ static int smb1398_pre_regulator_iout_vote_cb(struct votable *votable, return -EINVAL; iout_ua = min(iout_ua, MAX_IOUT_UA); - rc = smb1398_set_ichg_ma(chip, do_div(iout_ua, 1000)); + rc = smb1398_set_ichg_ma(chip, (iout_ua / 1000)); if (rc < 0) return rc;