diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-21 19:44:49 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-21 20:42:36 -0700 |
commit | 35a1f0dfa13510b29f9d320a999819eb2d9cb857 (patch) | |
tree | 340c3fafdba1064a1b93e6fdbf0a644836411f15 | |
parent | 27a1961d0b527b24e7f76230d94df617004b1534 (diff) |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stdio.c b/common/stdio.c index 7252bab1f6c..f99cfe7f4f0 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; |