sc760x_charger_mmi: no need to return failed

sc->thermal_ratio assign to default value, so no need retrun failed if
not define thermal-ratio in dts, or sc760x may register failed

Change-Id: I8f0494c85bf36caad9aa8d5340d8bcc70e779b5a
Signed-off-by: xuxj <xuxj12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2592059
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
xuxj 2023-04-28 11:26:26 +08:00 • committed by xuxj12
commit 8a73a52922

View file

@ -1132,7 +1132,7 @@ static int sc760x_parse_dt(struct sc760x_chip *sc, struct device *dev)
if (ret)
sc->thermal_ratio = 1;
return ret;
return 0;
}
static int sc760x_init_device(struct sc760x_chip *sc)