• Guennadi Liakhovetski's avatar
    [PATCH] tmscsim: init / exit cleanup · 679be37d
    Guennadi Liakhovetski authored
    On Sun, 23 May 2004, Christoph Hellwig wrote:
    > these leaks.  Maybe also  merge dc390_init and dc390_init_one?
    >
    > Similarly I think DC390_release should be merged into dc390_remove_one.
    
    Attached. Also fixed some __init / __devinit and __exit / __devexit
    attributes. Although, would be good to have something like
    
    #ifdef CONFIG_HOTPLUG_PCI
    #define __pcidevinit
    #define __pcidevinitdata
    #define __pcidevexit
    #define __pcidevexitdata
    #else
    #define __pcidevinit __init
    #define __pcidevinitdata __initdata
    #define __pcidevexit __exit
    #define __pcidevexitdata __exitdata
    #endif
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
    679be37d
tmscsim.c 67 KB