thermal: rcar_thermal: don't call thermal_zone_device_unregister when USE_OF_THERMAL
authorBui Duc Phuc <bd-phuc@jinso.co.jp>
Mon, 22 Aug 2016 03:19:49 +0000 (03:19 +0000)
committerZhang Rui <rui.zhang@intel.com>
Tue, 27 Sep 2016 06:02:16 +0000 (14:02 +0800)
commitd4b23c5c434a7af053782cc0f9eebee51ec71bb2
tree7e6d3ab5d7c2ccea9c247852e9743545fbec78e7
parent7b5c4a0cd48dbdcdf545eff5a214b1862a398784
thermal: rcar_thermal: don't call thermal_zone_device_unregister when USE_OF_THERMAL

devm_thermal_zone_of_sensor_register() case doesn't need to call
thermal_zone_device_unregister().
Otherwise, rcar-thermal can't register thermal zone again after rebind.
This patch fixes it.

Signed-off-by: Bui Duc Phuc <bd-phuc@jinso.co.jp>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rcar_thermal.c