diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 7b723c7c4cae3d949f205f2b6a3d9215f50118d4..84fdf0792e27cf57c979288a6a9b79543628495f 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1837,10 +1837,10 @@ static int __init thermal_init(void) exit_netlink: genetlink_exit(); -unregister_governors: - thermal_unregister_governors(); unregister_class: class_unregister(&thermal_class); +unregister_governors: + thermal_unregister_governors(); error: idr_destroy(&thermal_tz_idr); idr_destroy(&thermal_cdev_idr);