Lines Matching refs:zone
402 thermal_zone_of_add_sensor(struct device_node *zone, in thermal_zone_of_add_sensor() argument
409 tzd = thermal_zone_get_zone_by_name(zone->name); in thermal_zone_of_add_sensor()
974 struct thermal_zone_device *zone; in of_parse_thermal_zones() local
1010 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()
1015 if (IS_ERR(zone)) { in of_parse_thermal_zones()
1017 PTR_ERR(zone)); in of_parse_thermal_zones()
1057 struct thermal_zone_device *zone; in of_thermal_destroy_zones() local
1059 zone = thermal_zone_get_zone_by_name(child->name); in of_thermal_destroy_zones()
1060 if (IS_ERR(zone)) in of_thermal_destroy_zones()
1063 thermal_zone_device_unregister(zone); in of_thermal_destroy_zones()
1064 kfree(zone->tzp); in of_thermal_destroy_zones()
1065 kfree(zone->ops); in of_thermal_destroy_zones()
1066 of_thermal_free_zone(zone->devdata); in of_thermal_destroy_zones()