diff mbox

[U-Boot,01/37] stdio: Correct a build error with driver model

Message ID 1452787100-21782-2-git-send-email-sjg@chromium.org
State Accepted
Commit 35a1f0dfa13510b29f9d320a999819eb2d9cb857
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Jan. 14, 2016, 3:57 p.m. UTC
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>
---

 common/stdio.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

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;