summaryrefslogtreecommitdiff
path: root/drivers/thermal/qpnp-adc-tm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/qpnp-adc-tm.c')
-rw-r--r--drivers/thermal/qpnp-adc-tm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/qpnp-adc-tm.c b/drivers/thermal/qpnp-adc-tm.c
index 2df1bf69e7c9..f8c86cbce96b 100644
--- a/drivers/thermal/qpnp-adc-tm.c
+++ b/drivers/thermal/qpnp-adc-tm.c
@@ -2915,21 +2915,21 @@ int32_t qpnp_adc_tm_disable_chan_meas(struct qpnp_adc_tm_chip *chip,
QPNP_BTM_Mn_HIGH_THR_INT_EN, false);
if (rc < 0) {
pr_err("high thr disable err:%d\n", btm_chan_num);
- return rc;
+ goto fail;
}
rc = qpnp_adc_tm_reg_update(chip, QPNP_BTM_Mn_EN(btm_chan_num),
QPNP_BTM_Mn_LOW_THR_INT_EN, false);
if (rc < 0) {
pr_err("low thr disable err:%d\n", btm_chan_num);
- return rc;
+ goto fail;
}
rc = qpnp_adc_tm_reg_update(chip, QPNP_BTM_Mn_EN(btm_chan_num),
QPNP_BTM_Mn_MEAS_EN, false);
if (rc < 0) {
pr_err("multi measurement disable failed\n");
- return rc;
+ goto fail;
}
}