commit | 32fa5ba3171116a5501e60245dc97e82fe3cf267 | [log] [tgz] |
---|---|---|
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | Tue Aug 08 16:39:52 2017 +0200 |
committer | Zhang Rui <rui.zhang@intel.com> | Fri Aug 11 11:33:49 2017 +0800 |
tree | d5d3cae080986bd116c9497b5d80f0cdca8fd452 | |
parent | 039f6cf5b5566b92fae8d31924b1d59365798abb [diff] |
thermal: core: Add some new helper functions to free resources In order to easily free resources allocated by 'thermal_zone_create_device_groups()' we need 2 new helper functions. The first one undoes 'thermal_zone_create_device_groups()'. The 2nd one undoes 'create_trip_attrs()', which is a function called by 'thermal_zone_create_device_groups()'. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Zhang Rui <rui.zhang@intel.com>