Changeset 4e8e1f5 in mainline for uspace/drv/uhci-rhd/port.c
- Timestamp:
- 2011-02-11T18:10:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d321cd7
- Parents:
- 79d2987
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
r79d2987 r4e8e1f5 33 33 */ 34 34 #include <errno.h> 35 #include <str_error.h> 35 36 36 37 #include <usb/usb.h> /* usb_address_t */ 37 38 #include <usb/usbdrv.h> /* usb_drv_* */ 38 39 #include <usb/debug.h> 40 #include <usb/recognise.h> 39 41 40 42 #include "port.h" … … 204 206 assert(port->attached_device == 0); 205 207 206 ret = usb_drv_register_child_in_devman(port->hc_phone, port->rh, 207 usb_address, &port->attached_device); 208 208 devman_handle_t hc_handle; 209 ret = usb_drv_find_hc(port->rh, &hc_handle); 210 if (ret != EOK) { 211 usb_log_error("Failed to get handle of host controller: %s.\n", 212 str_error(ret)); 213 uhci_port_set_enabled(port, false); 214 return ENOMEM; 215 } 216 217 ret = usb_device_register_child_in_devman(usb_address, hc_handle, 218 port->rh, &port->attached_device); 209 219 if (ret != EOK) { /* something went wrong */ 210 220 usb_log_error("Failed(%d) in usb_drv_register_child.\n", ret);
Note:
See TracChangeset
for help on using the changeset viewer.