Changeset 2ac7af3 in mainline for uspace/drv/bus/usb/usbmast/main.c
- Timestamp:
- 2011-10-14T19:40:28Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df3caec5
- Parents:
- 6d4d883 (diff), 3a5506a (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/drv/bus/usb/usbmast/main.c
r6d4d883 r2ac7af3 87 87 * @return Error code. 88 88 */ 89 static int usbmast_ add_device(usb_device_t *dev)89 static int usbmast_device_add(usb_device_t *dev) 90 90 { 91 91 int rc; … … 94 94 95 95 /* Allocate softstate */ 96 mdev = ddf_dev_data_alloc(dev->ddf_dev,sizeof(usbmast_dev_t));96 dev->driver_data = mdev = malloc(sizeof(usbmast_dev_t)); 97 97 if (mdev == NULL) { 98 98 usb_log_error("Failed allocating softstate.\n"); … … 103 103 mdev->usb_dev = dev; 104 104 105 usb_log_info("Initializing mass storage `%s'.\n", 106 dev->ddf_dev->name); 105 usb_log_info("Initializing mass storage `%s'.\n", dev->ddf_dev->name); 107 106 usb_log_debug(" Bulk in endpoint: %d [%zuB].\n", 108 107 dev->pipes[BULK_IN_EP].pipe->endpoint_no, … … 295 294 /** USB mass storage driver ops. */ 296 295 static usb_driver_ops_t usbmast_driver_ops = { 297 . add_device = usbmast_add_device,296 .device_add = usbmast_device_add, 298 297 }; 299 298
Note:
See TracChangeset
for help on using the changeset viewer.