Changeset b991d37 in mainline for uspace/drv/bus/usb/uhci/hc.c
- Timestamp:
- 2011-08-31T16:41:11Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff6dd73
- Parents:
- 96e2d01
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
r96e2d01 rb991d37 128 128 link_t *item = list_first(&done); 129 129 list_remove(item); 130 u sb_transfer_batch_t *batch =131 list_get_instance(item, usb_transfer_batch_t, link);132 u sb_transfer_batch_finish(batch);130 uhci_transfer_batch_t *batch = 131 uhci_transfer_batch_from_link(item); 132 uhci_transfer_batch_call_dispose(batch); 133 133 } 134 134 } … … 382 382 assert(instance); 383 383 assert(batch); 384 int ret = batch_init_uhci(batch); 385 if (ret != EOK) { 386 return ret; 384 uhci_transfer_batch_t *uhci_batch = uhci_transfer_batch_get(batch); 385 if (!uhci_batch) { 386 usb_log_error("Failed to create UHCI transfer structures.\n"); 387 return ENOMEM; 387 388 } 388 389 … … 390 391 instance->transfers[batch->ep->speed][batch->ep->transfer_type]; 391 392 assert(list); 392 transfer_list_add_batch(list, batch);393 transfer_list_add_batch(list, uhci_batch); 393 394 394 395 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.