From: Mark Yao Date: Sun, 22 Jan 2017 03:56:06 +0000 (+0800) Subject: drm: of: don't mask possible_crtcs if remote-point is disabled X-Git-Tag: firefly_0821_release~692 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33f23515741d73a2e8e2b43823815dfbf505dae8;p=firefly-linux-kernel-4.4.55.git drm: of: don't mask possible_crtcs if remote-point is disabled Change-Id: I98d42ce5c9a5ed832e455a3d1fc88cf3ec717d69 Signed-off-by: Mark Yao --- diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index bc98bb94264d..fb758f26cf5c 100644 --- 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);