commit | 927e631ca56865076eaac1cfa86ae449400a4dbd | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Nov 13 14:22:00 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Fri Nov 25 17:59:30 2016 -0700 |
tree | af8bbeb626fd38ba1479afec8f1a40ca742699cc | |
parent | 913d76151fb3cd24bab848bf75e17df81886854f [diff] |
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: Simon Glass <sjg@chromium.org>