thermal: core: Initialize thermal zones before registering them
[ Upstream commit 662f920f ] Since user space can start interacting with a new thermal zone as soon as device_register() called by thermal_zone_device_register_with_trips() returns, it is better to initialize the thermal zone before calling device_register() on it. Fixes: d0df264f ("thermal/core: Remove pointless thermal_zone_device_reset() function") Signed-off-by:Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/3336146.44csPzL39Z@rjwysocki.net Reviewed-by:
Lukasz Luba <lukasz.luba@arm.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading