imx: video: Fix return value issue
When framebuffer driver init is failed, we should return the err value not 0. So the video init can exit immediately. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
2f41ade79e
commit
3fd39937b1
@ -7,7 +7,7 @@
|
||||
int board_video_skip(void)
|
||||
{
|
||||
int i;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
char const *panel = env_get("panel");
|
||||
|
||||
if (!panel) {
|
||||
@ -50,7 +50,7 @@ int board_video_skip(void)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IMX_HDMI
|
||||
|
Loading…
Reference in New Issue
Block a user