projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f16ab8a
)
drm: of: don't mask possible_crtcs if remote-point is disabled
author
Mark Yao
<mark.yao@rock-chips.com>
Sun, 22 Jan 2017 03:56:06 +0000
(11:56 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Sun, 5 Feb 2017 06:24:36 +0000
(14:24 +0800)
Change-Id: I98d42ce5c9a5ed832e455a3d1fc88cf3ec717d69
Signed-off-by: Mark Yao <mark.yao@rock-chips.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 bc98bb94264d130611bf73ea06a09b74afa5a3a6..fb758f26cf5cb83fc26c270afcac19f38e5fb507 100644
(file)
--- a/
drivers/gpu/drm/drm_of.c
+++ b/
drivers/gpu/drm/drm_of.c
@@
-48,6
+48,11
@@
uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
uint32_t possible_crtcs = 0;
for_each_endpoint_of_node(port, ep) {
+ if (!of_device_is_available(ep)) {
+ of_node_put(ep);
+ continue;
+ }
+
remote_port = of_graph_get_remote_port(ep);
if (!remote_port) {
of_node_put(ep);