drm/sun4i: Don't check for LVDS and RGB when TCON has only ch1
authorJernej Skrabec <jernej.skrabec@siol.net>
Mon, 25 Jun 2018 12:02:51 +0000 (14:02 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 27 Jun 2018 19:43:55 +0000 (21:43 +0200)
commit2a72d0c5796b7ec90ebf51e714b3d305d4367341
tree8cd62770e743e771fa790b288d5cab0c3d0cac08
parent49836b11fe71b93bd0124cbaecac0814aadec9eb
drm/sun4i: Don't check for LVDS and RGB when TCON has only ch1

LVDS and RGB interfaces are always connected to TCONs which have channel
0. It doesn't make sense to try to init them on TV TCONs.

Add a check if TCON has channel 0 before trying to init LVDS or RGB
interface.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180625120304.7543-12-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun4i_tcon.c