summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-05-04 21:33:26 +0200
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:41 -0600
commit134692af138243fca1037fc737651281701a9ab3 (patch)
tree1254c1b0306e1e78a8e1ec2c002ffcf30fbe8ac2 /drivers
parent76382aa2ce811d4bb53f8c617590fb36681ce169 (diff)
downloadtalos-obmc-uboot-134692af138243fca1037fc737651281701a9ab3.tar.gz
talos-obmc-uboot-134692af138243fca1037fc737651281701a9ab3.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/usb-uclass.c3
1 files changed, 1 insertions, 2 deletions
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");
OpenPOWER on IntegriCloud