From: Simon Glass Date: Fri, 22 Jan 2016 02:44:49 +0000 (-0700) Subject: stdio: Correct a build error with driver model X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35a1f0dfa13510b29f9d320a999819eb2d9cb857;p=people%2Fms%2Fu-boot.git 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 --- 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;