From 35a1f0dfa13510b29f9d320a999819eb2d9cb857 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 21 Jan 2016 19:44:49 -0700 Subject: [PATCH] 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 --- common/stdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/stdio.c b/common/stdio.c index 7252bab1f6..f99cfe7f4f 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; -- 2.39.5