Changeset 2ab6875 in mainline for uspace/drv/uhci-hcd/transfer_list.c


Ignore:
Timestamp:
2011-03-07T11:18:21Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bcaefe3
Parents:
4b4e163
Message:

Further refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/transfer_list.c

    r4b4e163 r2ab6875  
    4343        instance->next = NULL;
    4444        instance->name = name;
    45         instance->queue_head = queue_head_get();
     45        instance->queue_head = malloc32(sizeof(queue_head_t));
    4646        if (!instance->queue_head) {
    4747                usb_log_error("Failed to allocate queue head.\n");
    4848                return ENOMEM;
    4949        }
    50         instance->queue_head_pa = (uintptr_t)addr_to_phys(instance->queue_head);
     50        queue_head_init(instance->queue_head);
     51        instance->queue_head_pa = addr_to_phys(instance->queue_head);
    5152
    5253        queue_head_init(instance->queue_head);
Note: See TracChangeset for help on using the changeset viewer.