Replace USB encoded 'u32 endp' scheme with explicit struct fields.
[seabios.git] / src / usb-hub.c
index da7d9f8b3fec161074602250ff186497570d239d..ce40099cd32564e505ff6afef7996f2935a9c9d6 100644 (file)
@@ -168,7 +168,7 @@ usb_hub_init(struct usb_pipe *pipe)
     struct usbhub_s hub;
     memset(&hub, 0, sizeof(hub));
     hub.pipe = pipe;
-    hub.cntl = endp2cntl(pipe->endp);
+    hub.cntl = pipe->cntl;
     hub.powerwait = desc.bPwrOn2PwrGood * 2;
 
     // Launch a thread for every port.