thermal: armada: use the resource managed registration helper alternative
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Jul 2018 14:41:51 +0000 (16:41 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 27 Jul 2018 21:43:08 +0000 (14:43 -0700)
commitc9899c183921f919e10fe821be7de9fea876ba65
tree3d411252d3f57186429a7d5dfa5c821db6a1d9aa
parent3d4e51844a4eb3c86e568bdcc9408602b46dc638
thermal: armada: use the resource managed registration helper alternative

Current use of thermal_zone_device_register() triggers a warning at boot
and should be replaced by devm_thermal_zone_of_sensor_register(). This
allows better handling of multiple thermal zones for later multi-sensors
support.

Also change the driver data to embed a new structure to make the
difference between legacy data (which needs to be cleaned) and
syscon-related data.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c