• Patrick Mochel's avatar
    driver model: allow manual binding of devices to drivers. · c3016fe6
    Patrick Mochel authored
    This creates and exports device_bind_driver() and device_release_driver()
    that allow a caller to manually bind a device to a driver. Apparantly, some
    drivers use this functionality (like USB): a driver binds to other device
    interfaces during the driver's probe() method call for the first interface.
    
    Implementation is easy enough, since it simply involves renaming and exporting
    the internal functions attach() and detach().
    c3016fe6
bus.c 13.2 KB