Changeset 23b0fe8 in mainline for uspace/lib/usbhost/src/iface.c


Ignore:
Timestamp:
2011-08-25T13:16:45Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e20eaed
Parents:
90dd59d
Message:

libusbhost,uhci,ohci: Remove batch init hook.

Hw specific inintialization is a part of the scheduling process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/iface.c

    r90dd59d r23b0fe8  
    7878        }
    7979
    80         /* No private data and no private data_dtor, these should be set by
    81          * batch_init_hook*/
     80        /* No private data and no private data dtor, these will be set later */
    8281        usb_transfer_batch_init(batch, ep, data, NULL, size, setup_data,
    8382            setup_size, in, out, arg, fun, NULL, NULL);
    84         if (hcd->batch_init_hook) {
    85                 ret = hcd->batch_init_hook(batch);
    86                 if (ret != EOK)
    87                         goto out;
    88         } else {
    89                 usb_log_warning("Missing batch_private_data constructor!\n");
    90         }
     83
    9184        if (hcd->schedule) {
    9285                ret = hcd->schedule(hcd, batch);
     
    204197                return ENOMEM;
    205198        int ret = EOK;
     199
    206200        if (hcd->ep_add_hook) {
    207                 ret = hcd->ep_add_hook(ep);
     201                ret = hcd->ep_add_hook(hcd, ep);
    208202        }
    209203        if (ret != EOK) {
Note: See TracChangeset for help on using the changeset viewer.