grml...
[seabios.git] / src / usb-hub.c
index 1586bacabf7da93798ffadfd6ba0996210f0967c..b2d9ff25e1084bb50860ef56a2e697afe1706756 100644 (file)
@@ -88,7 +88,7 @@ usb_hub_detect(struct usbhub_s *hub, u32 port)
         if (sts.wPortStatus & USB_PORT_STAT_CONNECTION)
             // Device connected.
             break;
-        if (check_time(end))
+        if (check_tsc(end))
             // No device found.
             return -1;
         msleep(5);
@@ -129,7 +129,7 @@ usb_hub_reset(struct usbhub_s *hub, u32 port)
             goto fail;
         if (!(sts.wPortStatus & USB_PORT_STAT_RESET))
             break;
-        if (check_time(end)) {
+        if (check_tsc(end)) {
             warn_timeout();
             goto fail;
         }