mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02: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:
@@ -283,6 +283,9 @@ int stdio_add_devices(void)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_DM_VIDEO
|
#ifdef CONFIG_DM_VIDEO
|
||||||
struct udevice *vdev;
|
struct udevice *vdev;
|
||||||
|
# ifndef CONFIG_DM_KEYBOARD
|
||||||
|
int ret;
|
||||||
|
# endif
|
||||||
|
|
||||||
for (ret = uclass_first_device(UCLASS_VIDEO, &vdev);
|
for (ret = uclass_first_device(UCLASS_VIDEO, &vdev);
|
||||||
vdev;
|
vdev;
|
||||||
|
Reference in New Issue
Block a user