• Patrick Mochel's avatar
    driver model: change class reference counting to be like devices'. · 1067efac
    Patrick Mochel authored
    device classes join the club of devices, buses, and drivers. They get a 
    ->present flag, which is set on registration and cleared on unregistration.
    They also get get_devclass() and put_devclass(), which, you guessed it, 
    bump the reference count. get_...() of course checks the present flag and
    returns NULL if clear. 
    1067efac
class.c 2.92 KB