UPSTREAM: extcon: add missing of_node_put after calling of_parse_phandle
authorPeter Chen <peter.chen@nxp.com>
Fri, 1 Jul 2016 09:41:55 +0000 (18:41 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 3 Aug 2016 01:42:39 +0000 (09:42 +0800)
commit4d97894a8488ec10e12eefd13e4348b9af1ca81f
tree4e0faef5c6cc335a150a3b8773b7b3160de87983
parent2b693ac9f2b9d57b430140e1d527af18f1d606f5
UPSTREAM: extcon: add missing of_node_put after calling of_parse_phandle

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Change-Id: I96ad96b55e6f6c5e5335d12aeb5963c1b06451b3
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
(cherry picked from commit 5d5c4c139dd766dff903ba35d72fb3ec90022e91)
drivers/extcon/extcon.c