]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: of-thermal: Add devm version of thermal_zone_of_sensor_register
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 9 Mar 2016 13:10:06 +0000 (18:40 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 9 Mar 2016 18:31:20 +0000 (10:31 -0800)
commita5ca9e61585a036b19e282a5899d1ac65256581e
tree5ce061bc5e4c485d6b9aa1a9ce47144fec68e986
parente062952a1676227a3783f0322ac9056048cc13e3
thermal: of-thermal: Add devm version of thermal_zone_of_sensor_register

Add resource managed version of thermal_zone_of_sensor_register() and
thermal_zone_of_sensor_unregister().

This helps in reducing the code size in error path, remove of
driver remove callbacks and making proper sequence for deallocations.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/of-thermal.c
include/linux/thermal.h