commit | 35a1f0dfa13510b29f9d320a999819eb2d9cb857 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Jan 21 19:44:49 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Jan 21 20:42:36 2016 -0700 |
tree | 340c3fafdba1064a1b93e6fdbf0a644836411f15 | |
parent | 27a1961d0b527b24e7f76230d94df617004b1534 [diff] [blame] |
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>
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 @@ #endif #ifdef CONFIG_DM_VIDEO struct udevice *vdev; +# ifndef CONFIG_DM_KEYBOARD + int ret; +# endif for (ret = uclass_first_device(UCLASS_VIDEO, &vdev); vdev;