Ignore:
File:
1 edited

Legend:

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

    rb5111c46 rd52ab7b  
    230230 *
    231231 * @param[in] instance Memory place to initialize.
    232  * @param[in] HC function node
    233232 * @param[in] regs Range of device's I/O control registers.
    234233 * @param[in] interrupts True if hw interrupts should be used.
     
    239238 * interrupt fibrils.
    240239 */
    241 int hc_init(hc_t *instance, ddf_fun_t *fun, addr_range_t *regs, bool interrupts)
     240int hc_init(hc_t *instance, addr_range_t *regs, bool interrupts)
    242241{
    243242        assert(regs->size >= sizeof(uhci_regs_t));
     
    267266        }
    268267
    269         instance->generic = ddf_fun_data_alloc(fun, sizeof(hcd_t));
    270         if (instance->generic == NULL) {
    271                 usb_log_error("Out of memory.\n");
    272                 return ENOMEM;
    273         }
    274 
    275         hcd_init(instance->generic, USB_SPEED_FULL,
     268        hcd_init(&instance->generic, USB_SPEED_FULL,
    276269            BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11);
    277270
    278         instance->generic->private_data = instance;
    279         instance->generic->schedule = hc_schedule;
    280         instance->generic->ep_add_hook = NULL;
     271        instance->generic.private_data = instance;
     272        instance->generic.schedule = hc_schedule;
     273        instance->generic.ep_add_hook = NULL;
    281274
    282275        hc_init_hw(instance);
Note: See TracChangeset for help on using the changeset viewer.