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>
Wed, 24 Aug 2016 07:53:10 +0000 (15:53 +0800)
commit12fe77a84c7daee0f37b462674b7a62567315e81
tree3f8131c92329825f8b72b478d16196324e835e7c
parentf0e20aeff22ea0fbfbc122b5c285f486b4eb06a0
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
This page took 0.024258 seconds and 5 git commands to generate.