summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_of.c
diff options
context:
space:
mode:
authorOndrej Jirman <megous@megous.com>2019-09-20 19:29:14 +0200
committerSean Paul <seanpaul@chromium.org>2019-09-20 21:03:42 +0200
commit21185a668787e6673497cb032ecc9ad08c3fcbaf (patch)
tree4689e35a984f7bd85313702133defee72c8275ab /drivers/gpu/drm/drm_of.c
parentvideo/hdmi: Fix AVI bar unpack (diff)
downloadlinux-21185a668787e6673497cb032ecc9ad08c3fcbaf.tar.xz
linux-21185a668787e6673497cb032ecc9ad08c3fcbaf.zip
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: Ondrej Jirman <megous@megous.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190920172914.4015180-1-megous@megous.com
Diffstat (limited to 'drivers/gpu/drm/drm_of.c')
-rw-r--r--drivers/gpu/drm/drm_of.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 43d89dd59c6b..0ca58803ba46 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -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))