Skip to content
Snippets Groups Projects
Commit d844efec authored by Simon Glass's avatar Simon Glass
Browse files

stdio: Correct numbering logic in stdio_probe_device()


The current code assumes that the devices are ordered corresponding to
their alias value. But (for example) video1 can come before video0 in the
device tree.

Correct this, by always looking for device 0 first. After that we can fall
back to finding the first available device.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ab29a34a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment