Changeset 33fee91 in mainline for uspace/lib/usbdev/src/devdrv.c
- Timestamp:
- 2012-08-31T07:35:27Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a3da2b2
- Parents:
- 72cf064 (diff), 0d57c3e (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devdrv.c
r72cf064 r33fee91 105 105 if (dev == NULL) { 106 106 usb_log_error("USB device `%s' structure allocation failed.\n", 107 gen_dev->name);107 ddf_dev_get_name(gen_dev)); 108 108 return ENOMEM; 109 109 } … … 114 114 if (rc != EOK) { 115 115 usb_log_error("USB device `%s' init failed (%s): %s.\n", 116 gen_dev->name, err_msg, str_error(rc));116 ddf_dev_get_name(gen_dev), err_msg, str_error(rc)); 117 117 return rc; 118 118 } … … 139 139 return ENOTSUP; 140 140 /* Just tell the driver to stop whatever it is doing */ 141 usb_device_t *usb_dev = gen_dev->driver_data;141 usb_device_t *usb_dev = ddf_dev_data_get(gen_dev); 142 142 const int ret = driver->ops->device_rem(usb_dev); 143 143 if (ret != EOK) … … 160 160 if (driver->ops->device_gone == NULL) 161 161 return ENOTSUP; 162 usb_device_t *usb_dev = gen_dev->driver_data;162 usb_device_t *usb_dev = ddf_dev_data_get(gen_dev); 163 163 const int ret = driver->ops->device_gone(usb_dev); 164 164 if (ret == EOK) … … 415 415 usb_address_t address; 416 416 417 int rc = usb_get_info_by_handle(ddf_dev ->handle,417 int rc = usb_get_info_by_handle(ddf_dev_get_handle(ddf_dev), 418 418 &hc_handle, &address, &usb_dev->interface_no); 419 419 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.