]> err.no Git - linux-2.6/commitdiff
[PATCH] sym53c500_cs: remove bogus call fo free_dma()
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 30 Jan 2007 13:23:35 +0000 (13:23 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 30 Jan 2007 16:39:20 +0000 (08:39 -0800)
What DMA for 16bit pcmcia card, anyway?  We never do request_dma()
there and ->dma_channel never changes since initialization to -1.
IOW, that call is dead code.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/pcmcia/sym53c500_cs.c

index 9fb0ea5c1fb9305f7168d5f457b51e78e42348dc..5b458d2478f7f92eea58a059cfdc6fa0b8ce0dd6 100644 (file)
@@ -545,8 +545,6 @@ SYM53C500_release(struct pcmcia_device *link)
        */
        if (shost->irq)
                free_irq(shost->irq, shost);
-       if (shost->dma_channel != 0xff)
-               free_dma(shost->dma_channel);
        if (shost->io_port && shost->n_io_port)
                release_region(shost->io_port, shost->n_io_port);