Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/rh.c
- Timestamp:
- 2018-02-03T02:14:26Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb862fd
- Parents:
- 961a5ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
r961a5ee r45457265 79 79 * Initialize the roothub subsystem. 80 80 */ 81 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc)81 errno_t xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc) 82 82 { 83 83 assert(rh); … … 90 90 return ENOMEM; 91 91 92 const int err = bus_device_init(&rh->device.base, &rh->hc->bus.base);92 const errno_t err = bus_device_init(&rh->device.base, &rh->hc->bus.base); 93 93 if (err) { 94 94 free(rh->ports); … … 119 119 * Finalize the RH subsystem. 120 120 */ 121 int xhci_rh_fini(xhci_rh_t *rh)121 errno_t xhci_rh_fini(xhci_rh_t *rh) 122 122 { 123 123 assert(rh); … … 139 139 * a virtual usbhub device for RH, this routine is called for devices directly. 140 140 */ 141 static int rh_enumerate_device(usb_port_t *usb_port)142 { 143 int err;141 static errno_t rh_enumerate_device(usb_port_t *usb_port) 142 { 143 errno_t err; 144 144 rh_port_t *port = get_rh_port(usb_port); 145 145
Note:
See TracChangeset
for help on using the changeset viewer.