mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
dm: usb: Do not use bus->seq before device_probe(bus)
Do not use bus->seq before device_probe(bus), as bus->seq is not set until after the device_probe() call. This fixes u-boot printing: "USB-1: " for each bus it scans. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
76382aa2ce
commit
134692af13
1 changed files with 1 additions and 2 deletions
|
@ -145,9 +145,8 @@ int usb_init(void)
|
|||
|
||||
uclass_foreach_dev(bus, uc) {
|
||||
/* init low_level USB */
|
||||
printf("USB%d: ", count);
|
||||
count++;
|
||||
printf("USB");
|
||||
printf("%d: ", bus->seq);
|
||||
ret = device_probe(bus);
|
||||
if (ret == -ENODEV) { /* No such device. */
|
||||
puts("Port not available.\n");
|
||||
|
|
Loading…
Reference in a new issue