Skip to content

Commit

Permalink
[SCSI] sun3: Provide a dummy NCR5380_exit()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and James Bottomley committed Jun 29, 2011
1 parent d559c49 commit 19b6c51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/scsi/sun3_NCR5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *))
Expand Down
1 change: 1 addition & 0 deletions drivers/scsi/sun3_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ int sun3scsi_release (struct Scsi_Host *shpnt)

iounmap((void *)sun3_scsi_regp);

NCR5380_exit(shpnt);
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions drivers/scsi/sun3_scsi_vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ int sun3scsi_release (struct Scsi_Host *shpnt)

iounmap((void *)sun3_scsi_regp);

NCR5380_exit(shpnt);
return 0;
}

Expand Down

0 comments on commit 19b6c51

Please sign in to comment.