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: fc1acf317b ("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
This commit is contained in:
Paul Cercueil 2020-08-27 13:44:03 +02:00
parent 07b5b12d97
commit 1a21e5b930
No known key found for this signature in database
GPG key ID: 73EE6BD2274ABD41

View file

@ -978,6 +978,7 @@ static int ingenic_drm_probe(struct platform_device *pdev)
}
drm_of_component_match_add(dev, &match, compare_of, np);
of_node_put(np);
return component_master_add_with_match(dev, &ingenic_master_ops, match);
}