]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix scsi build on !CONFIG_GENERIC_ISA_DMA
authorMatt Porter <porter@cox.net>
Thu, 17 Apr 2003 15:02:50 +0000 (08:02 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2003 15:02:50 +0000 (08:02 -0700)
This allows the SCSI subsystem to build on systems where
CONFIG_GENERIC_ISA_DMA is not set.

drivers/scsi/hosts.c

index 82d6aa8cd6da302116af3775d5ad01889a6237d7..6fb1968779c78eaf15098f0228c24f02c958acb0 100644 (file)
@@ -183,8 +183,10 @@ static int scsi_host_legacy_release(struct Scsi_Host *shost)
 {
        if (shost->irq)
                free_irq(shost->irq, NULL);
+#ifdef CONFIG_GENERIC_ISA_DMA
        if (shost->dma_channel != 0xff)
                free_dma(shost->dma_channel);
+#endif
        if (shost->io_port && shost->n_io_port)
                release_region(shost->io_port, shost->n_io_port);