]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: ipu_disp: Return a negative value on error
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 4 Dec 2013 12:01:54 +0000 (10:01 -0200)
committerAnatolij Gustschin <agust@denx.de>
Wed, 4 Dec 2013 12:27:55 +0000 (13:27 +0100)
We should return a negative error number (-EINVAL) on error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
drivers/video/ipu_disp.c

index 22ac1429ba498fe10c3171f594593d722251a816..cefd2dc14a2ebbcd9b6c91228da3fb361b8fc05d 100644 (file)
@@ -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,