提交 d1486e33 编写于 作者: F Fabio Estevam 提交者: Anatolij Gustschin

video: ipu_disp: Return a negative value on error

We should return a negative error number (-EINVAL) on error.
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
上级 f44483b5
......@@ -889,7 +889,7 @@ int32_t ipu_init_sync_panel(int disp, uint32_t pixel_clk,
debug("panel size = %d x %d\n", width, height);
if ((v_sync_width == 0) || (h_sync_width == 0))
return EINVAL;
return -EINVAL;
adapt_panel_to_ipu_restricitions(&pixel_clk, width, height,
h_start_width, h_end_width,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册