Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: remove incorrect __exit markups

Even if bus is not hot-pluggable, devices can be unbound from the driver
via sysfs, so we should not be using __exit annotations on remove()
methods. The only exception is drivers registered with
platform_driver_probe() which specifically disables sysfs bind/unbind
attributes.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Dmitry Torokhov and committed by
Martin K. Petersen
ba21222d 61b745fa

+3 -3
+1 -1
drivers/scsi/sgiwd93.c
··· 297 297 return err; 298 298 } 299 299 300 - static int __exit sgiwd93_remove(struct platform_device *pdev) 300 + static int sgiwd93_remove(struct platform_device *pdev) 301 301 { 302 302 struct Scsi_Host *host = platform_get_drvdata(pdev); 303 303 struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata;
+1 -1
drivers/scsi/sni_53c710.c
··· 117 117 return -ENODEV; 118 118 } 119 119 120 - static int __exit snirm710_driver_remove(struct platform_device *dev) 120 + static int snirm710_driver_remove(struct platform_device *dev) 121 121 { 122 122 struct Scsi_Host *host = dev_get_drvdata(&dev->dev); 123 123 struct NCR_700_Host_Parameters *hostdata =
+1 -1
drivers/scsi/zalon.c
··· 167 167 168 168 MODULE_DEVICE_TABLE(parisc, zalon_tbl); 169 169 170 - static int __exit zalon_remove(struct parisc_device *dev) 170 + static int zalon_remove(struct parisc_device *dev) 171 171 { 172 172 struct Scsi_Host *host = dev_get_drvdata(&dev->dev); 173 173