From: Al Viro Date: Tue, 30 Jan 2007 13:23:35 +0000 (+0000) Subject: [PATCH] sym53c500_cs: remove bogus call fo free_dma() X-Git-Tag: v2.6.20-rc7~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9a696b4f3c5664c2c4815cc8e37256e51a3425e1;p=linux-2.6-omap-h63xx.git [PATCH] sym53c500_cs: remove bogus call fo free_dma() 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index 9fb0ea5c1fb..5b458d2478f 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c @@ -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);