Commit 900e8d6b authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by James Bottomley

[SCSI] wd33c93: Kill empty wd33c93_release()

wd33c93_release() has been empty since ages, and sgiwd93.c no longer calls it
since its conversion to a proper platform driver 2 years ago. Also remove the
callers in the m68k wd33c93 shims.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 6e51f085
...@@ -193,7 +193,6 @@ static int __init a2091_detect(struct scsi_host_template *tpnt) ...@@ -193,7 +193,6 @@ static int __init a2091_detect(struct scsi_host_template *tpnt)
unregister: unregister:
scsi_unregister(instance); scsi_unregister(instance);
wd33c93_release();
release: release:
release_mem_region(address, 256); release_mem_region(address, 256);
} }
...@@ -242,7 +241,6 @@ static int a2091_release(struct Scsi_Host *instance) ...@@ -242,7 +241,6 @@ static int a2091_release(struct Scsi_Host *instance)
DMA(instance)->CNTR = 0; DMA(instance)->CNTR = 0;
release_mem_region(ZTWO_PADDR(instance->base), 256); release_mem_region(ZTWO_PADDR(instance->base), 256);
free_irq(IRQ_AMIGA_PORTS, instance); free_irq(IRQ_AMIGA_PORTS, instance);
wd33c93_release();
#endif #endif
return 1; return 1;
} }
......
...@@ -193,7 +193,6 @@ static int __init a3000_detect(struct scsi_host_template *tpnt) ...@@ -193,7 +193,6 @@ static int __init a3000_detect(struct scsi_host_template *tpnt)
return 1; return 1;
fail_irq: fail_irq:
wd33c93_release();
scsi_unregister(a3000_host); scsi_unregister(a3000_host);
fail_register: fail_register:
release_mem_region(0xDD0000, 256); release_mem_region(0xDD0000, 256);
...@@ -237,7 +236,6 @@ static struct scsi_host_template driver_template = { ...@@ -237,7 +236,6 @@ static struct scsi_host_template driver_template = {
static int a3000_release(struct Scsi_Host *instance) static int a3000_release(struct Scsi_Host *instance)
{ {
wd33c93_release();
DMA(instance)->CNTR = 0; DMA(instance)->CNTR = 0;
release_mem_region(0xDD0000, 256); release_mem_region(0xDD0000, 256);
free_irq(IRQ_AMIGA_PORTS, a3000_intr); free_irq(IRQ_AMIGA_PORTS, a3000_intr);
......
...@@ -339,7 +339,6 @@ int __init gvp11_detect(struct scsi_host_template *tpnt) ...@@ -339,7 +339,6 @@ int __init gvp11_detect(struct scsi_host_template *tpnt)
unregister: unregister:
scsi_unregister(instance); scsi_unregister(instance);
wd33c93_release();
release: release:
release_mem_region(address, 256); release_mem_region(address, 256);
} }
...@@ -392,7 +391,6 @@ int gvp11_release(struct Scsi_Host *instance) ...@@ -392,7 +391,6 @@ int gvp11_release(struct Scsi_Host *instance)
DMA(instance)->CNTR = 0; DMA(instance)->CNTR = 0;
release_mem_region(ZTWO_PADDR(instance->base), 256); release_mem_region(ZTWO_PADDR(instance->base), 256);
free_irq(IRQ_AMIGA_PORTS, instance); free_irq(IRQ_AMIGA_PORTS, instance);
wd33c93_release();
#endif #endif
return 1; return 1;
} }
......
...@@ -108,7 +108,6 @@ int mvme147_detect(struct scsi_host_template *tpnt) ...@@ -108,7 +108,6 @@ int mvme147_detect(struct scsi_host_template *tpnt)
err_free_irq: err_free_irq:
free_irq(MVME147_IRQ_SCSI_PORT, mvme147_intr); free_irq(MVME147_IRQ_SCSI_PORT, mvme147_intr);
err_unregister: err_unregister:
wd33c93_release();
scsi_unregister(mvme147_host); scsi_unregister(mvme147_host);
err_out: err_out:
return 0; return 0;
...@@ -155,7 +154,6 @@ int mvme147_release(struct Scsi_Host *instance) ...@@ -155,7 +154,6 @@ int mvme147_release(struct Scsi_Host *instance)
{ {
#ifdef MODULE #ifdef MODULE
/* XXX Make sure DMA is stopped! */ /* XXX Make sure DMA is stopped! */
wd33c93_release();
free_irq(MVME147_IRQ_SCSI_PORT, mvme147_intr); free_irq(MVME147_IRQ_SCSI_PORT, mvme147_intr);
free_irq(MVME147_IRQ_SCSI_DMA, mvme147_intr); free_irq(MVME147_IRQ_SCSI_DMA, mvme147_intr);
#endif #endif
......
...@@ -2224,14 +2224,8 @@ wd33c93_proc_info(struct Scsi_Host *instance, char *buf, char **start, off_t off ...@@ -2224,14 +2224,8 @@ wd33c93_proc_info(struct Scsi_Host *instance, char *buf, char **start, off_t off
} }
void
wd33c93_release(void)
{
}
EXPORT_SYMBOL(wd33c93_host_reset); EXPORT_SYMBOL(wd33c93_host_reset);
EXPORT_SYMBOL(wd33c93_init); EXPORT_SYMBOL(wd33c93_init);
EXPORT_SYMBOL(wd33c93_release);
EXPORT_SYMBOL(wd33c93_abort); EXPORT_SYMBOL(wd33c93_abort);
EXPORT_SYMBOL(wd33c93_queuecommand); EXPORT_SYMBOL(wd33c93_queuecommand);
EXPORT_SYMBOL(wd33c93_intr); EXPORT_SYMBOL(wd33c93_intr);
......
...@@ -348,6 +348,5 @@ int wd33c93_queuecommand (struct scsi_cmnd *cmd, ...@@ -348,6 +348,5 @@ int wd33c93_queuecommand (struct scsi_cmnd *cmd,
void wd33c93_intr (struct Scsi_Host *instance); void wd33c93_intr (struct Scsi_Host *instance);
int wd33c93_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int); int wd33c93_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int);
int wd33c93_host_reset (struct scsi_cmnd *); int wd33c93_host_reset (struct scsi_cmnd *);
void wd33c93_release(void);
#endif /* WD33C93_H */ #endif /* WD33C93_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment