mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
imx: nitrogen6x/mx6qsabrelite: Fix bug in board_video_skip
Signed-off-by: Robert Winkler <robert.winkler@boundarydevices.com>
This commit is contained in:
parent
607232e42a
commit
47ac53d7ae
1 changed files with 3 additions and 1 deletions
|
@ -593,6 +593,7 @@ int board_video_skip(void)
|
||||||
if (!panel) {
|
if (!panel) {
|
||||||
panel = displays[0].mode.name;
|
panel = displays[0].mode.name;
|
||||||
printf("No panel detected: default to %s\n", panel);
|
printf("No panel detected: default to %s\n", panel);
|
||||||
|
i = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (i = 0; i < ARRAY_SIZE(displays); i++) {
|
for (i = 0; i < ARRAY_SIZE(displays); i++) {
|
||||||
|
@ -609,9 +610,10 @@ int board_video_skip(void)
|
||||||
displays[i].mode.name,
|
displays[i].mode.name,
|
||||||
displays[i].mode.xres,
|
displays[i].mode.xres,
|
||||||
displays[i].mode.yres);
|
displays[i].mode.yres);
|
||||||
} else
|
} else {
|
||||||
printf("LCD %s cannot be configured: %d\n",
|
printf("LCD %s cannot be configured: %d\n",
|
||||||
displays[i].mode.name, ret);
|
displays[i].mode.name, ret);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("unsupported panel %s\n", panel);
|
printf("unsupported panel %s\n", panel);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue