thermal/drivers/generic-iio-adc: Switch tz request to devm version
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 19 Oct 2017 17:05:59 +0000 (19:05 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:17 +0000 (19:32 -0700)
commitd377aba193111419341fabaec6cab92df25e1b28
treeacad1addb9c710ff8663ca17e0099ee184e2648a
parent07209fcf33542c1ff1e29df2dbdf8f29cdaacb10
thermal/drivers/generic-iio-adc: Switch tz request to devm version

Everything mentionned here:
 https://lkml.org/lkml/2016/4/20/850

This driver was added before the devm_iio_channel_get() function version was
merged. The sensor should be released before the iio channel, thus we had to
use the non-devm version of thermal_zone_of_sensor_register().

Now the devm_iio_channel_get() is available, do the corresponding change in
this driver and remove gadc_thermal_remove().

[Compiled tested only]

Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal-generic-adc.c