summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-12-04 10:01:54 -0200
committerAnatolij Gustschin <agust@denx.de>2013-12-04 13:27:55 +0100
commitd1486e3352c8e6b91da8e610993ea591466cb223 (patch)
treebe6ba389549e7531e56e1208688bdfa415276f28 /drivers
parentf44483b57c49282299da0e5c10073b909cdad979 (diff)
downloadu-boot-imx-d1486e3352c8e6b91da8e610993ea591466cb223.zip
u-boot-imx-d1486e3352c8e6b91da8e610993ea591466cb223.tar.gz
u-boot-imx-d1486e3352c8e6b91da8e610993ea591466cb223.tar.bz2
video: ipu_disp: Return a negative value on error
We should return a negative error number (-EINVAL) on error. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/ipu_disp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/ipu_disp.c b/drivers/video/ipu_disp.c
index 22ac142..cefd2dc 100644
--- a/drivers/video/ipu_disp.c
+++ b/drivers/video/ipu_disp.c
@@ -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,