From: Hans de Goede Date: Mon, 4 May 2015 19:33:26 +0000 (+0200) Subject: dm: usb: Do not use bus->seq before device_probe(bus) X-Git-Tag: v2015.07-rc2~285^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=134692af138243fca1037fc737651281701a9ab3;p=oweals%2Fu-boot.git 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 Acked-by: Simon Glass --- diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index 714bc0e958..8dc18236ab 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -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");