summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-01-04 09:11:05 +0000
committerAnatolij Gustschin <agust@denx.de>2019-01-28 21:13:33 +0100
commit3fd39937b1aeef3a4937b82f1efd6c101e156fd4 (patch)
tree244629cacc588a2430bb9728b8121441395a178d /arch/arm/mach-imx
parent2f41ade79e5969ebea03a7dcadbeae8e03787d7e (diff)
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>
Diffstat (limited to 'arch/arm/mach-imx')
-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 b40ce53405..953fe53cb4 100644
--- a/arch/arm/mach-imx/video.c
+++ b/arch/arm/mach-imx/video.c
@@ -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