Lines Matching refs:thermal_class
923 static struct class *thermal_class; variable
994 if (!thermal_class) in __thermal_cooling_device_register()
1018 cdev->device.class = thermal_class; in __thermal_cooling_device_register()
1403 if (!thermal_class) in thermal_zone_device_register_with_trips()
1437 tz->device.class = thermal_class; in thermal_zone_device_register_with_trips()
1772 thermal_class = kzalloc(sizeof(*thermal_class), GFP_KERNEL); in thermal_init()
1773 if (!thermal_class) { in thermal_init()
1778 thermal_class->name = "thermal"; in thermal_init()
1779 thermal_class->dev_release = thermal_release; in thermal_init()
1781 result = class_register(thermal_class); in thermal_init()
1783 kfree(thermal_class); in thermal_init()
1784 thermal_class = NULL; in thermal_init()