Changeset 18092dd3 in mainline for uspace/drv/bus/usb/xhci/device.c
- Timestamp:
- 2018-01-29T13:23:28Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bdfcaf
- Parents:
- 702729e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/device.c
r702729e r18092dd3 81 81 usb_log_debug("Obtained slot ID: %u.", dev->slot_id); 82 82 83 /* Temporary reference */ 83 84 endpoint_t *ep0_base; 84 85 if ((err = bus_endpoint_add(&dev->base, &ep0_initial_desc, &ep0_base))) … … 93 94 goto err_added; 94 95 96 /* Temporary reference */ 97 endpoint_del_ref(ep0_base); 98 95 99 return EOK; 96 100 97 101 err_added: 98 /* Bus reference */ 102 bus_endpoint_remove(ep0_base); 103 /* Temporary reference */ 99 104 endpoint_del_ref(ep0_base); 100 dev->base.endpoints[0] = NULL;101 105 err_slot: 102 106 hc_disable_slot(dev);
Note:
See TracChangeset
for help on using the changeset viewer.