Changeset 7cfe5c0 in mainline for uspace/lib/usb/src/hc.c


Ignore:
Timestamp:
2012-08-20T19:16:24Z (12 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b99156
Parents:
b9cb911 (diff), 01e397ac (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.
Message:

Merged with mainline 0.5.0 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hc.c

    rb9cb911 r7cfe5c0  
    115115 */
    116116int usb_hc_connection_initialize_from_device(usb_hc_connection_t *connection,
    117     const ddf_dev_t *device)
    118 {
    119         assert(connection);
    120 
    121         if (device == NULL) {
     117    ddf_dev_t *device)
     118{
     119        if (device == NULL)
    122120                return EBADMEM;
    123         }
    124121
    125122        devman_handle_t hc_handle;
    126         const int rc = usb_get_hc_by_handle(device->handle, &hc_handle);
     123        const int rc = usb_get_hc_by_handle(ddf_dev_get_handle(device), &hc_handle);
    127124        if (rc == EOK) {
    128125                usb_hc_connection_initialize(connection, hc_handle);
Note: See TracChangeset for help on using the changeset viewer.