Ignore:
File:
1 edited

Legend:

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

    r7de1988c r507c6f3  
    177177        ddf_fun_set_ops(instance->rh_fun, &rh_ops);
    178178
    179         addr_range_t regs;
     179        uintptr_t reg_base = 0;
     180        size_t reg_size = 0;
    180181        int irq = 0;
    181182
    182         rc = get_my_registers(device, &regs, &irq);
     183        rc = get_my_registers(device, &reg_base, &reg_size, &irq);
    183184        if (rc != EOK) {
    184185                usb_log_error("Failed to get register memory addresses "
     
    189190
    190191        usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n",
    191             RNGABSPTR(regs), RNGSZ(regs), irq);
    192 
    193         rc = hc_register_irq_handler(device, &regs, irq, irq_handler);
     192            (void *) reg_base, reg_size, irq);
     193
     194        rc = hc_register_irq_handler(device, reg_base, reg_size, irq, irq_handler);
    194195        if (rc != EOK) {
    195196                usb_log_error("Failed to register interrupt handler: %s.\n",
     
    214215        }
    215216
    216         rc = hc_init(&instance->hc, &regs, interrupts);
     217        rc = hc_init(&instance->hc, reg_base, reg_size, interrupts);
    217218        if (rc != EOK) {
    218219                usb_log_error("Failed to init ohci_hcd: %s.\n", str_error(rc));
Note: See TracChangeset for help on using the changeset viewer.