thermal: fix multiple disbalanced device node counters
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 28 Sep 2014 23:47:46 +0000 (02:47 +0300)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 3 Nov 2014 03:02:49 +0000 (23:02 -0400)
commitc2aad93c7edd5e1bc26cc1d80c1c00a954f01946
tree98406df3174eb327288857006fb1d00a0c5d658a
parent689bd24c5e5046b5e5d0aeff9c0b6abf1093fed6
thermal: fix multiple disbalanced device node counters

Here on function return all temporarily used device nodes shall
decrement their usage counter. The problems are found with device
nodes allocated by for_each_child_of_node(), of_parse_phandle()
and of_find_node_by_name(), fix all problems at once.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Cc: devicetree@vger.kernel.org
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/of-thermal.c