Changeset a23297c in mainline
- Timestamp:
- 2011-10-04T12:19:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cfa1a8a
- Parents:
- 9c0c0e1 (diff), 3d79f5b (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
r9c0c0e1 ra23297c 94 94 95 95 /* Allocate softstate */ 96 mdev = calloc(1, sizeof(usbmast_dev_t));96 mdev = ddf_dev_data_alloc(dev->ddf_dev, sizeof(usbmast_dev_t)); 97 97 if (mdev == NULL) { 98 98 usb_log_error("Failed allocating softstate.\n"); … … 159 159 160 160 /* Allocate soft state */ 161 mfun = ddf_ dev_data_alloc(mdev->ddf_dev, sizeof(usbmast_fun_t));161 mfun = ddf_fun_data_alloc(fun, sizeof(usbmast_fun_t)); 162 162 if (mfun == NULL) { 163 163 usb_log_error("Failed allocating softstate.\n"); … … 171 171 /* Set up a connection handler. */ 172 172 fun->conn_handler = usbmast_bd_connection; 173 fun->driver_data = mfun;174 173 175 174 usb_log_debug("Inquire...\n");
Note:
See TracChangeset
for help on using the changeset viewer.