On 10/04/16 18:35, Laxman Dewangan wrote:
The alternative would be to merge this devm_ support as a prerequisite for your thermal
Yaah, possibly race for very small time possible.
The limitation of devm_ api usage is that, we can keep using this
till we have devm_ api continuous and if some resource are not there
for devm_ then we can not use further. Possibly, I need to wait for
the devm_iio_channel_get() to merge and available for all subsystem
to use (next release) and then only I can use
devm_thermal_zone_of_sensor_register().
patches and have it go through that tree. As it's self contained I have
no particular problem with that if you'd prefer to do it that way.
Otherwise, you will need to do as you say above (not use
devm_thermal_zone_of_sensor_register) to make sure it isn't broken in the meantime.