• Christoph Hellwig's avatar
    [PATCH] get rid of ->finish method for highlevel drivers · a049055c
    Christoph Hellwig authored
    the ->finish method is a relicat from the old day were we never had
    hotplugging and allowed the driver to do fixups after all busses
    had been scanned.  Nowdays only sd and sr actually implement it,
    and both only defer actions to there that should actually happen in
    ->attach.  Change both drivers to move that code into ->attach,
    clenaup the Templates to use C99 initializers and get rid of the
    methods.
    
    This also cleans up some very crude race-avoidable code in those
    drivers, btw..
    a049055c
sd.c 43.2 KB