summaryrefslogtreecommitdiff
path: root/board/boundary
diff options
context:
space:
mode:
authorRobert Winkler <robert.winkler@boundarydevices.com>2013-06-13 11:32:22 -0700
committerStefano Babic <sbabic@denx.de>2013-09-10 19:28:18 +0200
commit47ac53d7aee90ec46f7a5b4e10e62114e60b1976 (patch)
tree25b5f9bc5e2dca8acbb33dd4a413e281d305790b /board/boundary
parent607232e42a46503ba3be1c458dcd8597cbf7a753 (diff)
downloadu-boot-imx-47ac53d7aee90ec46f7a5b4e10e62114e60b1976.zip
u-boot-imx-47ac53d7aee90ec46f7a5b4e10e62114e60b1976.tar.gz
u-boot-imx-47ac53d7aee90ec46f7a5b4e10e62114e60b1976.tar.bz2
imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip
Signed-off-by: Robert Winkler <robert.winkler@boundarydevices.com>
Diffstat (limited to 'board/boundary')
-rw-r--r--board/boundary/nitrogen6x/nitrogen6x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index f664f6d..2b61e5d 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -593,6 +593,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++) {
@@ -609,9 +610,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;