diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 122eba77360cb44018063694be76def4726587d0..592c72bd583573438463392dc70c264246da4ca6 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1900,7 +1900,7 @@ static void remove_trip_attrs(struct thermal_zone_device *tz) &tz->trip_temp_attrs[indx].attr); if (tz->ops->get_trip_hyst) device_remove_file(&tz->device, - &tz->trip_hyst_attrs[indx].attr); + &tz->trip_hyst_attrs[indx].attr); } kfree(tz->trip_type_attrs); kfree(tz->trip_temp_attrs);