]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
return _negative_ errno value in case of error
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 22 Jul 2013 06:22:37 +0000 (08:22 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 22 Jul 2013 06:22:37 +0000 (08:22 +0200)
drivers/video/ipu_disp.c

index b98342eca32833264822a9a6d3d01b253de9d40c..dd7d4126cab250ff1ec9114e20b0e36d20481e24 100644 (file)
@@ -907,7 +907,7 @@ int 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,