Ignore:
Timestamp:
2016-07-22T08:24:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge from lp:~jan.vesely/helenos/usb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_endpoint.c

    r5b18137 rb4b534ac  
    3232 * @brief OHCI driver
    3333 */
    34 #include "utils/malloc32.h"
     34
     35#include <assert.h>
     36#include <stdlib.h>
     37#include <usb/host/utils/malloc32.h>
     38
    3539#include "ohci_endpoint.h"
    3640#include "hc.h"
     
    8791        }
    8892
     93        link_initialize(&ohci_ep->link);
    8994        ed_init(ohci_ep->ed, ep, ohci_ep->td);
    9095        endpoint_set_hc_data(
    9196            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);
    9398        return EOK;
    9499}
     
    104109        assert(ep);
    105110        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);
    107113        if (instance) {
    108114                free32(instance->ed);
     
    110116                free(instance);
    111117        }
    112         endpoint_clear_hc_data(ep);
    113118}
    114119/**
Note: See TracChangeset for help on using the changeset viewer.