diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-13 21:22:00 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-11-26 00:59:30 (GMT) |
commit | d844efec472d7ea16b229d1c2c854bed70082278 (patch) | |
tree | af8bbeb626fd38ba1479afec8f1a40ca742699cc /drivers/spi/spi-uclass.c | |
parent | ab29a34a598c2a78a43bcc68c0e097d814038f41 (diff) | |
download | u-boot-fsl-qoriq-d844efec472d7ea16b229d1c2c854bed70082278.tar.xz |
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>
Diffstat (limited to 'drivers/spi/spi-uclass.c')
0 files changed, 0 insertions, 0 deletions