Changes in uspace/lib/usbdev/src/hub.c [56fd7cf:6e3c005] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/hub.c
r56fd7cf r6e3c005 33 33 * Functions needed by hub drivers. 34 34 */ 35 36 35 #include <usb/dev/hub.h> 37 36 #include <usb/dev/pipes.h> … … 63 62 return EBADMEM; 64 63 return usb_hc_bind_address(connection, 65 attached_device->address, ddf_fun_get_handle(attached_device->fun));64 attached_device->address, attached_device->fun->handle); 66 65 } 67 66 … … 115 114 return EOK; 116 115 } 116 117 117 118 118 /** Wrapper for registering attached device to the hub. … … 160 160 ddf_dev_ops_t *dev_ops, void *new_dev_data, ddf_fun_t **new_fun) 161 161 { 162 if ( (new_fun == NULL) || (hc_conn == NULL))162 if (new_fun == NULL || hc_conn == NULL) 163 163 return EINVAL; 164 164 … … 287 287 rc = usb_hub_register_device(hc_conn, &new_device); 288 288 if (rc != EOK) { 289 /* We know nothing about that data. */ 290 if (new_dev_data) 291 child_fun->driver_data = NULL; 289 292 /* The child function is already created. */ 290 293 ddf_fun_destroy(child_fun);
Note:
See TracChangeset
for help on using the changeset viewer.