From: Robert Winkler Date: Thu, 13 Jun 2013 18:32:22 +0000 (-0700) Subject: imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip X-Git-Tag: v2013.10-rc4~1^2^2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=47ac53d7ae;p=oweals%2Fu-boot.git imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip Signed-off-by: Robert Winkler --- diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c index f664f6de6b..2b61e5d2a9 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;