[PATCH] v4l/omap: fix a compilation error

Mircea Gherzan mgherzan at gmail.com
Sat Mar 10 09:53:16 UTC 2012


Signed-off-by: Mircea Gherzan <mgherzan at gmail.com>
---
 drivers/media/video/omap/omap_vout.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
index 0d036b1..fdc1fb1 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -2305,14 +2305,16 @@ static int __init omap_vout_probe(struct platform_device *pdev)
 	if (ret)
 		goto probe_err2;
 
-	if (!cpu_is_omap54xx()) {
-		for (i = 0; i < vid_dev->num_displays; i++) {
-			struct omap_dss_device *display = vid_dev->displays[i];
+	if (cpu_is_omap54xx())
+		return 0;
+
+	for (i = 0; i < vid_dev->num_displays; i++) {
+		struct omap_dss_device *display = vid_dev->displays[i];
 
 		if (display->driver && display->driver->update)
 			display->driver->update(display, 0, 0,
-					display->panel.timings.x_res,
-					display->panel.timings.y_res);
+				display->panel.timings.x_res,
+				display->panel.timings.y_res);
 	}
 
 	return 0;
-- 
1.7.9.1




More information about the linaro-dev mailing list