Skip to content

Commit

Permalink
[SCSI] atari_NCR5380: Provide a dummy NCR5380_exit()
Browse files Browse the repository at this point in the history
and call it from atari_scsi_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 <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
geertu authored and James Bottomley committed Jun 29, 2011
1 parent 50f87f9 commit 6323e4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/scsi/atari_NCR5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,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 (Scsi_Cmnd *cmd,
* void (*done)(Scsi_Cmnd *))
Expand Down
1 change: 1 addition & 0 deletions drivers/scsi/atari_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ int atari_scsi_release(struct Scsi_Host *sh)
free_irq(IRQ_TT_MFP_SCSI, sh);
if (atari_dma_buffer)
atari_stram_free(atari_dma_buffer);
NCR5380_exit(sh);
return 1;
}

Expand Down

0 comments on commit 6323e4f

Please sign in to comment.