Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci.c

    rb5111c46 r5b89d43b  
    3434 */
    3535
     36/* XXX Fix this */
     37#define _DDF_DATA_IMPLANT
     38
    3639#include <errno.h>
    3740#include <stdbool.h>
     
    5962        hc_t hc;
    6063        /** Internal driver's representation of UHCI root hub */
    61         rh_t *rh;
     64        rh_t rh;
    6265} uhci_t;
    6366
     
    183186
    184187        ddf_fun_set_ops(instance->hc_fun, &hc_ops);
     188        ddf_fun_data_implant(instance->hc_fun, &instance->hc.generic);
    185189
    186190        instance->rh_fun = ddf_fun_create(device, fun_inner, "uhci_rh");
     
    192196
    193197        ddf_fun_set_ops(instance->rh_fun, &rh_ops);
    194         instance->rh = ddf_fun_data_alloc(instance->rh_fun, sizeof(rh_t));
     198        ddf_fun_data_implant(instance->rh_fun, &instance->rh);
    195199
    196200        addr_range_t regs;
     
    232236        }
    233237
    234         rc = hc_init(&instance->hc, instance->hc_fun, &regs, interrupts);
     238        rc = hc_init(&instance->hc, &regs, interrupts);
    235239        if (rc != EOK) {
    236240                usb_log_error("Failed to init uhci_hcd: %s.\n", str_error(rc));
     
    256260        }
    257261
    258         rc = rh_init(instance->rh, instance->rh_fun, &regs, 0x10, 4);
     262        rc = rh_init(&instance->rh, instance->rh_fun, &regs, 0x10, 4);
    259263        if (rc != EOK) {
    260264                usb_log_error("Failed to setup UHCI root hub: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.