Changeset 8e3742f9 in mainline


Ignore:
Timestamp:
2011-12-14T22:19:25Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
54cbda2
Parents:
da2f1c9e
Message:

libusbdev: Deinitialize hc connection on destruction. Make call to usb_device_deinit repeatable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devdrv.c

    rda2f1c9e r8e3742f9  
    492492{
    493493        if (dev) {
     494                /* Destroy existing pipes. */
     495                destroy_current_pipes(dev);
    494496                /* Ignore errors and hope for the best. */
    495                 destroy_current_pipes(dev);
    496 
     497                usb_hc_connection_deinitialize(&dev->hc_conn);
    497498                usb_alternate_interfaces_deinit(&dev->alternate_interfaces);
    498499                usb_device_release_descriptors(&dev->descriptors);
    499500                free(dev->driver_data);
     501                dev->driver_data = NULL;
    500502        }
    501503}
Note: See TracChangeset for help on using the changeset viewer.