Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b09096a in mainline


Ignore:
Timestamp:
2011-10-30T18:40:10Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
dcc10b8d
Parents:
e978ada
Message:

usbflbk: Fix dev_remove.

Previously I misunderstood the purpose of this callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbflbk/main.c

    re978ada rb09096a  
    7474}
    7575
    76 /** Callback when new device is about to be removed.
    77  *
    78  * @param dev Representation of a generic DDF device.
    79  * @return Error code.
    80  */
    81 static int usbfallback_device_remove(usb_device_t *dev)
    82 {
    83         return EOK;
    84 }
    85 
    8676/** Callback when new device is removed and recognized as gone by DDF.
    8777 *
     
    10797static const usb_driver_ops_t usbfallback_driver_ops = {
    10898        .device_add = usbfallback_device_add,
    109         .device_rem = usbfallback_device_remove,
     99        .device_rem = usbfallback_device_gone,
    110100        .device_gone = usbfallback_device_gone,
    111101};
Note: See TracChangeset for help on using the changeset viewer.