commit | c5667f49fdefcfff3aeef943abdce7432b8e1dc8 | [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 | cf88b7c8d015c42b11b230ef3c494fc0e1fbaf19 [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>
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;