video: sunxi: de2: fix SimpleFB node creation when HDMI not initialized
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 1 Nov 2017 14:18:06 +0000 (22:18 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 6 Nov 2017 08:13:28 +0000 (13:43 +0530)
commit460b15adc9baab3dd403191b14c34647a24c1fcc
tree183c3438a555bb1cc649eea0484a9264af36577c
parent43ede0bca7fc1590b623832b743213b818257a27
video: sunxi: de2: fix SimpleFB node creation when HDMI not initialized

When HDMI is not initialized (e.g. no monitor is plugged), the current
SimpleFB code will still create a broken SimpleFB node.

Detect whether HDMI is initialized when creating SimpleFB node.

Fixes: be5b96f0e411 ("sunxi: setup simplefb for Allwinner DE2")
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/video/sunxi/sunxi_de2.c