Changeset 196fbb0 in mainline
- Timestamp:
- 2011-10-12T18:57:06Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6626bba9
- Parents:
- 940f576
- Location:
- uspace/drv/bus/usb/usbhub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/usbhub.c
r940f576 r196fbb0 136 136 137 137 usb_log_debug("Creating DDF function '" HUB_FNC_NAME "'.\n"); 138 ddf_fun_t *hub_fun = ddf_fun_create(hub_info->usb_device->ddf_dev,138 hub_info->hub_fun = ddf_fun_create(hub_info->usb_device->ddf_dev, 139 139 fun_exposed, HUB_FNC_NAME); 140 if (hub_ fun == NULL) {140 if (hub_info->hub_fun == NULL) { 141 141 usb_log_error("Failed to create hub function.\n"); 142 142 free(hub_info); … … 144 144 } 145 145 146 opResult = ddf_fun_bind(hub_ fun);146 opResult = ddf_fun_bind(hub_info->hub_fun); 147 147 if (opResult != EOK) { 148 148 usb_log_error("Failed to bind hub function: %s.\n", 149 149 str_error(opResult)); 150 150 free(hub_info); 151 ddf_fun_destroy(hub_ fun);151 ddf_fun_destroy(hub_info->hub_fun); 152 152 return opResult; 153 153 } … … 157 157 usb_hub_polling_terminated_callback, hub_info); 158 158 if (opResult != EOK) { 159 ddf_fun_destroy(hub_ fun);159 ddf_fun_destroy(hub_info->hub_fun); 160 160 free(hub_info); 161 161 usb_log_error("Failed to create polling fibril: %s.\n", -
uspace/drv/bus/usb/usbhub/usbhub.h
r940f576 r196fbb0 76 76 /** Condition variable for pending_ops_count. */ 77 77 fibril_condvar_t pending_ops_cv; 78 ddf_fun_t *hub_fun; 78 79 }; 79 80
Note:
See TracChangeset
for help on using the changeset viewer.