projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27a1961
)
stdio: Correct a build error with driver model
author
Simon Glass
<sjg@chromium.org>
Fri, 22 Jan 2016 02:44:49 +0000
(19:44 -0700)
committer
Simon Glass
<sjg@chromium.org>
Fri, 22 Jan 2016 03:42:36 +0000
(20:42 -0700)
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
patch
|
blob
|
history
diff --git
a/common/stdio.c
b/common/stdio.c
index
7252bab
..
f99cfe7
100644
(file)
--- 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;