[U-Boot] [PATCH v2 01/37] stdio: Correct a build error with driver model
Simon Glass
sjg at chromium.org
Fri Jan 22 03:44:49 CET 2016
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 at chromium.org>
---
Changes in v2: None
common/stdio.c | 3 +++
1 file changed, 3 insertions(+)
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;
--
2.7.0.rc3.207.g0ac5344
More information about the U-Boot
mailing list