]> Pileus Git - ~andy/linux/commitdiff
[SCSI] sun3: Provide a dummy NCR5380_exit()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Jun 2011 18:39:19 +0000 (20:39 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 20:13:42 +0000 (15:13 -0500)
and call it from sun3scsi_release(), cfr. the other NCR5380 drivers.

This fixes:

drivers/scsi/NCR5380.h:303: warning: ‘NCR5380_exit’ declared ‘static’ but never defined

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sun3_NCR5380.c
drivers/scsi/sun3_scsi.c
drivers/scsi/sun3_scsi_vme.c

index 0d04c3a00db9c3ba830d5a15712edaed53399419..2ba1cb7810915b16dad255fa4e388294cd2fc0b3 100644 (file)
@@ -890,6 +890,11 @@ static int __init NCR5380_init(struct Scsi_Host *instance, int flags)
     return 0;
 }
 
+static void NCR5380_exit(struct Scsi_Host *instance)
+{
+       /* Empty, as we didn't schedule any delayed work */
+}
+
 /* 
  * Function : int NCR5380_queue_command (struct scsi_cmnd *cmd,
  *     void (*done)(struct scsi_cmnd *))
index 2ad6b91d71eb73b7a0217f6b35239c9a74b4b138..2cc83ef3f37f71fc0c621ffa6baa1a62a7dbd3ca 100644 (file)
@@ -314,6 +314,7 @@ int sun3scsi_release (struct Scsi_Host *shpnt)
 
        iounmap((void *)sun3_scsi_regp);
 
+       NCR5380_exit(shpnt);
        return 0;
 }
 
index cd6d7790c3733b8b93ffe4d7e060a05f3a700376..c0252db4da68121f70ffdc0289d0d5ab42a683c8 100644 (file)
@@ -283,6 +283,7 @@ int sun3scsi_release (struct Scsi_Host *shpnt)
 
        iounmap((void *)sun3_scsi_regp);
 
+       NCR5380_exit(shpnt);
        return 0;
 }