projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6039f37
)
drm: Remove redundant of_device_is_available check
author
Ondrej Jirman
<megous@megous.com>
Fri, 20 Sep 2019 17:29:14 +0000
(19:29 +0200)
committer
Sean Paul
<seanpaul@chromium.org>
Fri, 20 Sep 2019 19:03:42 +0000
(15:03 -0400)
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
drivers/gpu/drm/drm_of.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_of.c
b/drivers/gpu/drm/drm_of.c
index 43d89dd59c6b14501a0060a2963dc6a86b06004d..0ca58803ba46f207e4227af8eb4c07a7c07b8654 100644
(file)
--- 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))