Changeset 26e7d6d in mainline for uspace/drv/bus/usb/uhci/root_hub.c
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/root_hub.c
r3842a955 r26e7d6d 50 50 int rh_init(rh_t *instance, ddf_fun_t *fun, uintptr_t reg_addr, size_t reg_size) 51 51 { 52 assert(instance); 52 53 assert(fun); 53 54 char *match_str = NULL;55 int ret = asprintf(&match_str, "usb&uhci&root-hub");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;61 }62 assert(match_str);63 64 ret = ddf_fun_add_match_id(fun, match_str, 100);65 if (ret != EOK) {66 free(match_str);67 usb_log_error("Failed(%d) to add root hub match id: %s\n",68 ret, str_error(ret));69 return ret;70 }71 54 72 55 /* Initialize resource structure */ … … 79 62 instance->io_regs.res.io_range.endianness = LITTLE_ENDIAN; 80 63 81 return EOK; 64 const int ret = ddf_fun_add_match_id(fun, "usb&uhci&root-hub", 100); 65 if (ret != EOK) { 66 usb_log_error("Failed to add root hub match id: %s\n", 67 str_error(ret)); 68 } 69 return ret; 82 70 } 83 71 /**
Note:
See TracChangeset
for help on using the changeset viewer.