drm/ingenic: Fix leak of device_node pointer
authorPaul Cercueil <paul@crapouillou.net>
Thu, 27 Aug 2020 11:44:03 +0000 (13:44 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 30 Aug 2020 22:52:32 +0000 (00:52 +0200)
commit1a21e5b930e8454438ebb707f558b256e4b06ec7
treec8ef3dd5515f5d0deb1e499af6456ab8dac843e8
parent07b5b12d97dc9f47ff3dff46c4f944a15bd762e5
drm/ingenic: Fix leak of device_node pointer

of_graph_get_remote_node() requires of_node_put() to be called on the
device_node pointer when it's no more in use.

Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827114404.36748-1-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c