video: fbdev: omapfb: Add missing of_node_put() in dvic_probe_of
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 7 Mar 2022 12:38:12 +0000 (12:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:21 +0000 (14:23 +0200)
commita41fc6d02d82def40332ddd76e5d623a7acaf9cf
tree9676a1614163fcd2e112aecb64675695388eb5cd
parentc193128099310ff30d81a85343c83b4a5bdfaac1
video: fbdev: omapfb: Add missing of_node_put() in dvic_probe_of

[ Upstream commit a58c22cfbbf62fefca090334bbd35fd132e92a23 ]

The device_node pointer is returned by of_parse_phandle()  with refcount
incremented. We should use of_node_put() on it when done.

Fixes: f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c