Commit c5f9cd4f authored by Matt Porter's avatar Matt Porter Committed by Jeff Garzik

[PATCH] Fix scsi build on !CONFIG_GENERIC_ISA_DMA

This allows the SCSI subsystem to build on systems where
CONFIG_GENERIC_ISA_DMA is not set.
parent 959c23c5
...@@ -183,8 +183,10 @@ static int scsi_host_legacy_release(struct Scsi_Host *shost) ...@@ -183,8 +183,10 @@ static int scsi_host_legacy_release(struct Scsi_Host *shost)
{ {
if (shost->irq) if (shost->irq)
free_irq(shost->irq, NULL); free_irq(shost->irq, NULL);
#ifdef CONFIG_GENERIC_ISA_DMA
if (shost->dma_channel != 0xff) if (shost->dma_channel != 0xff)
free_dma(shost->dma_channel); free_dma(shost->dma_channel);
#endif
if (shost->io_port && shost->n_io_port) if (shost->io_port && shost->n_io_port)
release_region(shost->io_port, shost->n_io_port); release_region(shost->io_port, shost->n_io_port);
......
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