summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:44:49 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:36 -0700
commit35a1f0dfa13510b29f9d320a999819eb2d9cb857 (patch)
tree340c3fafdba1064a1b93e6fdbf0a644836411f15
parent27a1961d0b527b24e7f76230d94df617004b1534 (diff)
downloadu-boot-imx-35a1f0dfa13510b29f9d320a999819eb2d9cb857.zip
u-boot-imx-35a1f0dfa13510b29f9d320a999819eb2d9cb857.tar.gz
u-boot-imx-35a1f0dfa13510b29f9d320a999819eb2d9cb857.tar.bz2
stdio: Correct a build error with driver model
When driver model is used for video but not for the keyboard, a compiler warnings is produced. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/stdio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stdio.c b/common/stdio.c
index 7252bab..f99cfe7 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -283,6 +283,9 @@ int stdio_add_devices(void)
#endif
#ifdef CONFIG_DM_VIDEO
struct udevice *vdev;
+# ifndef CONFIG_DM_KEYBOARD
+ int ret;
+# endif
for (ret = uclass_first_device(UCLASS_VIDEO, &vdev);
vdev;