Changes in uspace/drv/uhci-hcd/root_hub.c [ea993d18:fa3de85] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/root_hub.c
rea993d18 rfa3de85 55 55 int ret = asprintf(&match_str, "usb&uhci&root-hub"); 56 56 if (ret < 0) { 57 usb_log_error( 58 "Failed(%d) to create root hub match string: %s.\n", 59 ret, str_error(ret)); 60 return ret; 57 usb_log_error("Failed to create root hub match string.\n"); 58 return ENOMEM; 61 59 } 62 60 63 61 ret = ddf_fun_add_match_id(fun, match_str, 100); 64 62 if (ret != EOK) { 65 free(match_str);66 63 usb_log_error("Failed(%d) to add root hub match id: %s\n", 67 64 ret, str_error(ret)); … … 69 66 } 70 67 71 /* Initialize resource structure */72 instance->resource_list.count = 1;73 instance->resource_list.resources = &instance->io_regs;74 68 hw_resource_list_t *resource_list = &instance->resource_list; 69 resource_list->count = 1; 70 resource_list->resources = &instance->io_regs; 71 assert(resource_list->resources); 75 72 instance->io_regs.type = IO_RANGE; 76 73 instance->io_regs.res.io_range.address = reg_addr;
Note:
See TracChangeset
for help on using the changeset viewer.