Changeset d15809b4 in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-02-14T10:14:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 962ce100
- Parents:
- 0d36c20 (diff), 45c01a1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r0d36c20 rd15809b4 36 36 #include <bool.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 39 40 #include <usb_iface.h> 40 41 #include <usb/usbdrv.h> 41 42 #include <usb/descriptor.h> 43 #include <usb/recognise.h> 42 44 #include <usb/devreq.h> 43 45 #include <usb/classes/hub.h> … … 317 319 } 318 320 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 319 329 devman_handle_t child_handle; 320 opResult = usb_drv_register_child_in_devman(hc, hub->device,321 new_device_address, &child_handle);330 opResult = usb_device_register_child_in_devman(new_device_address, 331 hc_handle, hub->device, &child_handle); 322 332 if (opResult != EOK) { 323 333 dprintf(USB_LOG_LEVEL_ERROR, "could not start driver for new device");
Note:
See TracChangeset
for help on using the changeset viewer.