Changes in uspace/drv/bus/usb/ohci/ohci.c [507c6f3:7de1988c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci.c
r507c6f3 r7de1988c 177 177 ddf_fun_set_ops(instance->rh_fun, &rh_ops); 178 178 179 uintptr_t reg_base = 0; 180 size_t reg_size = 0; 179 addr_range_t regs; 181 180 int irq = 0; 182 181 183 rc = get_my_registers(device, ® _base, ®_size, &irq);182 rc = get_my_registers(device, ®s, &irq); 184 183 if (rc != EOK) { 185 184 usb_log_error("Failed to get register memory addresses " … … 190 189 191 190 usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n", 192 (void *) reg_base, reg_size, irq);193 194 rc = hc_register_irq_handler(device, reg_base, reg_size, irq, irq_handler);191 RNGABSPTR(regs), RNGSZ(regs), irq); 192 193 rc = hc_register_irq_handler(device, ®s, irq, irq_handler); 195 194 if (rc != EOK) { 196 195 usb_log_error("Failed to register interrupt handler: %s.\n", … … 215 214 } 216 215 217 rc = hc_init(&instance->hc, reg_base, reg_size, interrupts);216 rc = hc_init(&instance->hc, ®s, interrupts); 218 217 if (rc != EOK) { 219 218 usb_log_error("Failed to init ohci_hcd: %s.\n", str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.