Skip to contentSkip to conversation

imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip

PATCH New Robert Winkler 2 participants 2 messages Jun 13, 2013 – Sep 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip

---
 board/boundary/nitrogen6x/nitrogen6x.c        | 4 +++-
 board/freescale/mx6qsabrelite/mx6qsabrelite.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
board/boundary/nitrogen6x/nitrogen6x.c +3 -1
index 0e2ab04..da0698d 100644
@@ -660,6 +660,7 @@ int board_video_skip(void)
 		if (!panel) {
 			panel = displays[0].mode.name;
 			printf("No panel detected: default to %s\n", panel);
+			i = 0;
 		}
 	} else {
 		for (i = 0; i < ARRAY_SIZE(displays); i++) {
@@ -676,9 +677,10 @@ int board_video_skip(void)
 			       displays[i].mode.name,
 			       displays[i].mode.xres,
 			       displays[i].mode.yres);
-		} else
+		} else {
 			printf("LCD %s cannot be configured: %d\n",
 			       displays[i].mode.name, ret);
+		}
 	} else {
 		printf("unsupported panel %s\n", panel);
 		ret = -EINVAL;
board/freescale/mx6qsabrelite/mx6qsabrelite.c +3 -1
index 191084b..2a81165 100644
@@ -595,6 +595,7 @@ int board_video_skip(void)
 		if (!panel) {
 			panel = displays[0].mode.name;
 			printf("No panel detected: default to %s\n", panel);
+			i = 0;
 		}
 	} else {
 		for (i = 0; i < ARRAY_SIZE(displays); i++) {
@@ -611,9 +612,10 @@ int board_video_skip(void)
 			       displays[i].mode.name,
 			       displays[i].mode.xres,
 			       displays[i].mode.yres);
-		} else
+		} else {
 			printf("LCD %s cannot be configured: %d\n",
 			       displays[i].mode.name, ret);
+		}
 	} else {
 		printf("unsupported panel %s\n", panel);
 		ret = -EINVAL;
Signature · 1 line
1.8.3
#1 lore raw

PATCH 1/1 imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip

Quoted 4 lines · Robert Winkler
---
 board/boundary/nitrogen6x/nitrogen6x.c        | 4 +++-
 board/freescale/mx6qsabrelite/mx6qsabrelite.c | 4 +++-

Of course, we have not anymore mx6qsabrelite.c

Applied (only nitrogen part) to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================