summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-09-10 07:29:22 -0700
committerYe Li <ye.li@nxp.com>2018-09-11 21:55:43 -0700
commit024b84b47f33ac49a6a477b7fdf7a10fa417b6b1 (patch)
tree64c29e1b92dbc330b04d9bff6a57f4f62e6ba57a /arch
parent79e8d0441d8c5cf8bde5ce1e332ffcb780c86986 (diff)
MLK-19526-3 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/video.c b/arch/arm/mach-imx/video.c
index eb799fb75d..0f9464141e 100644
--- a/arch/arm/mach-imx/video.c
+++ b/arch/arm/mach-imx/video.c
@@ -12,7 +12,7 @@
int board_video_skip(void)
{
int i;
- int ret;
+ int ret = 0;
char const *panel = env_get("panel");
if (!panel) {
@@ -68,7 +68,7 @@ int board_video_skip(void)
return -EINVAL;
}
- return 0;
+ return ret;
}
#ifdef CONFIG_IMX_HDMI