Changes in uspace/drv/usbhub/usbhub.c [71ed4849:e080332] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r71ed4849 re080332 37 37 #include <errno.h> 38 38 39 #include <usb _iface.h>39 #include <usbhc_iface.h> 40 40 #include <usb/usbdrv.h> 41 41 #include <usb/descriptor.h> … … 46 46 #include "usbhub_private.h" 47 47 #include "port_status.h" 48 49 static usb_iface_t hub_usb_iface = {50 .get_hc_handle = usb_drv_find_hc51 };52 53 static device_ops_t hub_device_ops = {54 .interfaces[USB_DEV_IFACE] = &hub_usb_iface55 };56 48 57 49 //********************************************* … … 143 135 * connected devices. 144 136 */ 145 dev->ops = &hub_device_ops;146 137 147 138 //create the hub structure 148 139 //get hc connection 149 int hc = usb_drv_hc_connect_auto(dev, 0); 150 if (hc < 0) { 151 return hc; 152 } 140 int hc = usb_drv_hc_connect(dev, 0); 153 141 154 142 usb_hub_info_t * hub_info = usb_create_hub_info(dev, hc); … … 476 464 * Connect to respective HC. 477 465 */ 478 int hc = usb_drv_hc_connect _auto(hub_info->device, 0);466 int hc = usb_drv_hc_connect(hub_info->device, 0); 479 467 if (hc < 0) { 480 468 continue;
Note:
See TracChangeset
for help on using the changeset viewer.