Changes in uspace/drv/usbhub/usbhub.c [4e8e1f5:103a3626] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r4e8e1f5 r103a3626 36 36 #include <bool.h> 37 37 #include <errno.h> 38 #include <str_error.h>39 38 40 39 #include <usb_iface.h> 41 40 #include <usb/usbdrv.h> 42 41 #include <usb/descriptor.h> 43 #include <usb/recognise.h>44 42 #include <usb/devreq.h> 45 43 #include <usb/classes/hub.h> … … 201 199 //ports powered, hub seems to be enabled 202 200 203 async_hangup(hc);201 ipc_hangup(hc); 204 202 205 203 //add the hub to list … … 319 317 } 320 318 321 devman_handle_t hc_handle;322 opResult = usb_drv_find_hc(hub->device, &hc_handle);323 if (opResult != EOK) {324 usb_log_error("Failed to get handle of host controller: %s.\n",325 str_error(opResult));326 return;327 }328 329 319 devman_handle_t child_handle; 330 opResult = usb_device_register_child_in_devman(new_device_address,331 hc_handle, hub->device, &child_handle);320 opResult = usb_drv_register_child_in_devman(hc, hub->device, 321 new_device_address, &child_handle); 332 322 if (opResult != EOK) { 333 323 dprintf(USB_LOG_LEVEL_ERROR, "could not start driver for new device"); … … 512 502 free(change_bitmap); 513 503 514 async_hangup(hc);504 ipc_hangup(hc); 515 505 fibril_mutex_lock(&usb_hub_list_lock); 516 506 }
Note:
See TracChangeset
for help on using the changeset viewer.