scsi: remove incorrect __exit markups
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 2 Mar 2017 01:38:38 +0000 (17:38 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Mar 2017 23:27:46 +0000 (19:27 -0400)
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>
drivers/scsi/sgiwd93.c
drivers/scsi/sni_53c710.c
drivers/scsi/zalon.c

index 6d215e2..71b4b91 100644 (file)
@@ -297,7 +297,7 @@ out:
        return err;
 }
 
-static int __exit sgiwd93_remove(struct platform_device *pdev)
+static int sgiwd93_remove(struct platform_device *pdev)
 {
        struct Scsi_Host *host = platform_get_drvdata(pdev);
        struct ip22_hostdata *hdata = (struct ip22_hostdata *) host->hostdata;
index 7627807..1f9a087 100644 (file)
@@ -117,7 +117,7 @@ static int snirm710_probe(struct platform_device *dev)
        return -ENODEV;
 }
 
-static int __exit snirm710_driver_remove(struct platform_device *dev)
+static int snirm710_driver_remove(struct platform_device *dev)
 {
        struct Scsi_Host *host = dev_get_drvdata(&dev->dev);
        struct NCR_700_Host_Parameters *hostdata =
index 97ccb03..b2cf1fa 100644 (file)
@@ -167,7 +167,7 @@ static struct parisc_device_id zalon_tbl[] = {
 
 MODULE_DEVICE_TABLE(parisc, zalon_tbl);
 
-static int __exit zalon_remove(struct parisc_device *dev)
+static int zalon_remove(struct parisc_device *dev)
 {
        struct Scsi_Host *host = dev_get_drvdata(&dev->dev);