Changeset 9848c77 in mainline for uspace/lib/usbhost/src/bus.c


Ignore:
Timestamp:
2018-01-11T04:14:40Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17783bf
Parents:
0892663a
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-11 04:10:46)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-11 04:14:40)
Message:

usbhost: renamed bus_device_remove to bus_device_gone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/bus.c

    r0892663a r9848c77  
    167167                 */
    168168                fibril_mutex_unlock(&dev->guard);
    169                 bus_device_remove(child);
     169                bus_device_gone(child);
    170170                fibril_mutex_lock(&dev->guard);
    171171        }
     
    176176 * Resolve a USB device that is gone.
    177177 */
    178 void bus_device_remove(device_t *dev)
     178void bus_device_gone(device_t *dev)
    179179{
    180180        assert(dev);
    181181        assert(dev->fun == NULL);
    182182
    183         const bus_ops_t *ops = BUS_OPS_LOOKUP(dev->bus->ops, device_remove);
     183        const bus_ops_t *ops = BUS_OPS_LOOKUP(dev->bus->ops, device_gone);
    184184        assert(ops);
    185185
     
    212212
    213213        /* Tell the HC to release its resources. */
    214         ops->device_remove(dev);
     214        ops->device_gone(dev);
    215215
    216216        /* Release the EP0 bus reference */
Note: See TracChangeset for help on using the changeset viewer.