mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
27a1961d0b
commit
35a1f0dfa1
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue