Changes in uspace/lib/usbdev/src/hub.c [6e3c005:56fd7cf] in mainline
- File:
-
- 1 edited
-
uspace/lib/usbdev/src/hub.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/hub.c
r6e3c005 r56fd7cf 33 33 * Functions needed by hub drivers. 34 34 */ 35 35 36 #include <usb/dev/hub.h> 36 37 #include <usb/dev/pipes.h> … … 62 63 return EBADMEM; 63 64 return usb_hc_bind_address(connection, 64 attached_device->address, attached_device->fun->handle);65 attached_device->address, ddf_fun_get_handle(attached_device->fun)); 65 66 } 66 67 … … 114 115 return EOK; 115 116 } 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;292 289 /* The child function is already created. */ 293 290 ddf_fun_destroy(child_fun);
Note:
See TracChangeset
for help on using the changeset viewer.
