wandboard: Return the error immediately when ipuv3_fb_init() fails

If ipuv3_fb_init() fails, we should return the error immediately.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
Fabio Estevam 2013-11-03 22:03:03 -02:00 committed by Stefano Babic
parent ac135f6699
commit cffe815a76

View File

@ -230,8 +230,10 @@ int board_video_skip(void)
ret = ipuv3_fb_init(&hdmi, 0, IPU_PIX_FMT_RGB24);
if (ret)
if (ret) {
printf("HDMI cannot be configured: %d\n", ret);
return ret;
}
imx_enable_hdmi_phy();