Changeset b4b534ac in mainline for uspace/drv/bus/usb/ohci/ohci_endpoint.c
- Timestamp:
- 2016-07-22T08:24:47Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f76d2c2
- Parents:
- 5b18137 (diff), 8351f9a4 (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/bus/usb/ohci/ohci_endpoint.c
r5b18137 rb4b534ac 32 32 * @brief OHCI driver 33 33 */ 34 #include "utils/malloc32.h" 34 35 #include <assert.h> 36 #include <stdlib.h> 37 #include <usb/host/utils/malloc32.h> 38 35 39 #include "ohci_endpoint.h" 36 40 #include "hc.h" … … 87 91 } 88 92 93 link_initialize(&ohci_ep->link); 89 94 ed_init(ohci_ep->ed, ep, ohci_ep->td); 90 95 endpoint_set_hc_data( 91 96 ep, ohci_ep, ohci_ep_toggle_get, ohci_ep_toggle_set); 92 hc_enqueue_endpoint(hcd ->private_data, ep);97 hc_enqueue_endpoint(hcd_get_driver_data(hcd), ep); 93 98 return EOK; 94 99 } … … 104 109 assert(ep); 105 110 ohci_endpoint_t *instance = ohci_endpoint_get(ep); 106 hc_dequeue_endpoint(hcd->private_data, ep); 111 hc_dequeue_endpoint(hcd_get_driver_data(hcd), ep); 112 endpoint_clear_hc_data(ep); 107 113 if (instance) { 108 114 free32(instance->ed); … … 110 116 free(instance); 111 117 } 112 endpoint_clear_hc_data(ep);113 118 } 114 119 /**
Note:
See TracChangeset
for help on using the changeset viewer.