thermal: core: Use the new 'thermal_zone_destroy_device_groups()' helper function

Simplify code by using the new 'thermal_zone_destroy_device_groups()'
helper function.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
Christophe Jaillet 2017-08-08 16:39:53 +02:00 • committed by Zhang Rui
commit 6a6cd25b58