Skip to content
Snippets Groups Projects
Commit 21185a66 authored by Ondřej Jirman's avatar Ondřej Jirman Committed by Sean Paul
Browse files

drm: Remove redundant of_device_is_available check


This check is already performed by of_graph_get_remote_node. No
need to repeat it immediately after the call.

Signed-off-by: default avatarOndrej Jirman <megous@megous.com>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190920172914.4015180-1-megous@megous.com
parent 6039f37d
No related branches found
No related tags found
No related merge requests found
......@@ -250,11 +250,6 @@ int drm_of_find_panel_or_bridge(const struct device_node *np,
if (!remote)
return -ENODEV;
if (!of_device_is_available(remote)) {
of_node_put(remote);
return -ENODEV;
}
if (panel) {
*panel = of_drm_find_panel(remote);
if (!IS_ERR(*panel))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment