diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c b/drivers/staging/ti-soc-thermal/ti-bandgap.c index a9d6d2a3580b..d0751863a9c0 100644 --- a/drivers/staging/ti-soc-thermal/ti-bandgap.c +++ b/drivers/staging/ti-soc-thermal/ti-bandgap.c @@ -406,7 +406,7 @@ static int ti_bandgap_update_alert_threshold(struct ti_bandgap *bgp, int id, else t_cold = val; - if (t_cold < t_hot) { + if (t_cold > t_hot) { if (hot) err = ti_bandgap_add_hyst(bgp, t_hot, -ts_data->hyst_val,