Changes in uspace/drv/bus/usb/usbmast/main.c [56fd7cf:135486d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
r56fd7cf r135486d 160 160 mdev->usb_dev = dev; 161 161 162 usb_log_info("Initializing mass storage `%s'.\n", d df_dev_get_name(dev->ddf_dev));162 usb_log_info("Initializing mass storage `%s'.\n", dev->ddf_dev->name); 163 163 usb_log_debug("Bulk in endpoint: %d [%zuB].\n", 164 164 dev->pipes[BULK_IN_EP].pipe.endpoint_no, … … 245 245 246 246 /* Set up a connection handler. */ 247 ddf_fun_set_conn_handler(fun, usbmast_bd_connection);247 fun->conn_handler = usbmast_bd_connection; 248 248 249 249 usb_log_debug("Inquire...\n"); … … 252 252 if (rc != EOK) { 253 253 usb_log_warning("Failed to inquire device `%s': %s.\n", 254 ddf_dev_get_name(mdev->ddf_dev), str_error(rc));254 mdev->ddf_dev->name, str_error(rc)); 255 255 rc = EIO; 256 256 goto error; … … 259 259 usb_log_info("Mass storage `%s' LUN %u: " \ 260 260 "%s by %s rev. %s is %s (%s).\n", 261 ddf_dev_get_name(mdev->ddf_dev),261 mdev->ddf_dev->name, 262 262 lun, 263 263 inquiry.product, … … 272 272 if (rc != EOK) { 273 273 usb_log_warning("Failed to read capacity, device `%s': %s.\n", 274 ddf_dev_get_name(mdev->ddf_dev), str_error(rc));274 mdev->ddf_dev->name, str_error(rc)); 275 275 rc = EIO; 276 276 goto error; … … 310 310 usbmast_fun_t *mfun; 311 311 312 mfun = (usbmast_fun_t *) ddf_fun_data_get((ddf_fun_t *)arg);312 mfun = (usbmast_fun_t *) ((ddf_fun_t *)arg)->driver_data; 313 313 bd_conn(iid, icall, &mfun->bds); 314 314 }
Note:
See TracChangeset
for help on using the changeset viewer.