diff options
| author | Fabio Estevam <[email protected]> | 2013-12-04 10:01:54 -0200 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2013-12-04 13:27:55 +0100 |
| commit | d1486e3352c8e6b91da8e610993ea591466cb223 (patch) | |
| tree | be6ba389549e7531e56e1208688bdfa415276f28 | |
| parent | f44483b57c49282299da0e5c10073b909cdad979 (diff) | |
video: ipu_disp: Return a negative value on error
We should return a negative error number (-EINVAL) on error.
Signed-off-by: Fabio Estevam <[email protected]>
| -rw-r--r-- | drivers/video/ipu_disp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/ipu_disp.c b/drivers/video/ipu_disp.c index 22ac1429ba4..cefd2dc14a2 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, |
