From: Krzysztof Kozlowski Date: Fri, 4 Apr 2014 07:51:20 +0000 (-0700) Subject: leds: 88pm860x: Fix missing refcount decrement for parent of_node X-Git-Tag: omap-for-v3.16/fixes-against-rc1~40^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1175d5bc7b490a5175c955b4e656f42577a43ecf;p=pandora-kernel.git leds: 88pm860x: Fix missing refcount decrement for parent of_node The driver obtained the reference to parent->of_node but immediately it was overwritten by reference to child node 'leds'. The of_node_put at the end of DT parsing function decremented only the child 'leds' so effectively the reference to parent of_node leaked. Getting reference to parent->of_node is not needed at all so get rid of it to fix the reference count. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Bryan Wu --- Reading git-diff-tree failed