Changeset b5f813c in mainline for uspace/drv/bus/usb/ehci/ehci_endpoint.c
- Timestamp:
- 2015-07-04T03:28:02Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55346870
- Parents:
- 2dbfe44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_endpoint.c
r2dbfe44 rb5f813c 80 80 { 81 81 assert(ep); 82 hc_t *hc = hcd_get_driver_data(hcd); 83 82 84 ehci_endpoint_t *ehci_ep = malloc(sizeof(ehci_endpoint_t)); 83 85 if (ehci_ep == NULL) … … 95 97 endpoint_set_hc_data( 96 98 ep, ehci_ep, ehci_ep_toggle_get, ehci_ep_toggle_set); 97 hc_enqueue_endpoint(hc d->driver.data, ep);99 hc_enqueue_endpoint(hc, ep); 98 100 return EOK; 99 101 } … … 108 110 assert(hcd); 109 111 assert(ep); 112 hc_t *hc = hcd_get_driver_data(hcd); 113 110 114 ehci_endpoint_t *instance = ehci_endpoint_get(ep); 111 hc_dequeue_endpoint(hc d->driver.data, ep);115 hc_dequeue_endpoint(hc, ep); 112 116 endpoint_clear_hc_data(ep); 113 117 usb_log_debug2("EP(%p): Destroying for %p", instance, ep);
Note:
See TracChangeset
for help on using the changeset viewer.