drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node
authorChen-Yu Tsai <wens@csie.org>
Thu, 23 Feb 2017 08:05:34 +0000 (16:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:15 +0000 (22:15 +0100)
commit7544860733d158e3edbf309f27e79e258c8f66bd
treedb6721e721d85c119307c7f011633f83bf209af8
parenta6fbffb0301196df7735aa4aacd35610858e471f
drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node

The way drm_of_find_possible_crtcs works is it tries to match the
remote-endpoint of the given node's various endpoints to all the
crtc's .port field. Thus we need to set drm_crtc.port to the output
port node of the underlying TCON.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_crtc.c