Skip to content

Commit 1c63f8c

Browse files
Niklas Söderlundrafaeljw
authored andcommitted
thermal/drivers/rcar_gen3_thermal: Do not call set_trips() when resuming
There is no need to explicitly call set_trips() when resuming from suspend. The thermal framework calls thermal_zone_device_update() that restores the trip points. Suggested-by: Daniel Lezcano <[email protected]> Signed-off-by: Niklas Söderlund <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 883d155 commit 1c63f8c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/thermal/rcar_gen3_thermal.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,8 @@ static int __maybe_unused rcar_gen3_thermal_resume(struct device *dev)
560560

561561
for (i = 0; i < priv->num_tscs; i++) {
562562
struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i];
563-
struct thermal_zone_device *zone = tsc->zone;
564563

565564
priv->thermal_init(tsc);
566-
if (zone->ops->set_trips)
567-
rcar_gen3_thermal_set_trips(zone, zone->prev_low_trip,
568-
zone->prev_high_trip);
569565
}
570566

571567
return 0;

0 commit comments

Comments
 (0)