• Doug Thompson's avatar
    drivers/edac: fix edac_pci sysfs · d4c1465b
    Doug Thompson authored
    This patch fixes sysfs exit code for the EDAC PCI device in a similiar manner
    and the previous fixes for EDAC_MC and EDAC_DEVICE.
    
    It removes the old (and incorrect) completion model and uses reference counts
    on per instance kobjects and on the edac core module.
    
    This pattern was applied to the edac_mc and edac_device code, but the EDAC PCI
    code was missed.  In addition, this fixes a system hang after a low level
    driver was unloaded.  (A cleanup function was called twice, which really
    screwed things up)
    
    Cc: Greg KH <greg@kroah.com>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: default avatarDoug Thompson <dougthompson@xmission.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d4c1465b
edac_module.h 2.85 KB