Changes in uspace/drv/ohci/ohci.c [5d07f54:2c49b81b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/ohci.c
r5d07f54 r2c49b81b 54 54 { 55 55 assert(dev); 56 assert(dev->driver_data);57 56 hc_t *hc = &((ohci_t*)dev->driver_data)->hc; 58 57 uint16_t status = IPC_GET_ARG1(*call); … … 153 152 usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n", 154 153 (void *) mem_reg_base, mem_reg_size, irq); 154 155 ret = pci_disable_legacy(device); 156 CHECK_RET_DEST_FUN_RETURN(ret, 157 "Failed(%d) to disable legacy USB: %s.\n", ret, str_error(ret)); 155 158 156 159 bool interrupts = false; … … 185 188 "Failed(%d) to bind OHCI device function: %s.\n", 186 189 ret, str_error(ret)); 190 ret = ddf_fun_add_to_class(instance->hc_fun, USB_HC_DDF_CLASS_NAME); 191 CHECK_RET_DEST_FUN_RETURN(ret, 192 "Failed to add OHCI to HC class: %s.\n", str_error(ret)); 193 187 194 #undef CHECK_RET_HC_RETURN 188 195 … … 209 216 "Failed(%d) to create root hub function.\n", ret); 210 217 218 hc_register_hub(&instance->hc, instance->rh_fun); 211 219 212 220 instance->rh_fun->ops = &rh_ops; 213 221 instance->rh_fun->driver_data = NULL; 214 215 device->driver_data = instance;216 217 hc_start_hw(&instance->hc); 222 ret = ddf_fun_bind(instance->rh_fun); 223 CHECK_RET_FINI_RETURN(ret, 224 "Failed(%d) to register OHCI root hub.\n", ret); 225 218 226 return EOK; 219 227 #undef CHECK_RET_FINI_RETURN
Note:
See TracChangeset
for help on using the changeset viewer.