浏览代码

pas16: don't call free_dma()

The pas16 scsi driver does not use DMA, and the call to free_dma()
in its exit function seems to have been copied incorrectly from
another driver but never caused trouble.

One case where it gets in the way is randconfig builds on ARM,
which depending on the configuration does not provide a free_dma()
function, causing this build error:

drivers/scsi/pas16.c: In function 'pas16_release':
drivers/scsi/pas16.c:611:3: error: implicit declaration of function 'free_dma' [-Werror=implicit-function-declaration]
   free_dma(shost->dma_channel);

Removing the incorrect function calls should be the obvious
fix for this, with no downsides.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Arnd Bergmann 11 年之前
父节点
当前提交
6ea8631dc2
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/scsi/pas16.c

+ 0 - 2
drivers/scsi/pas16.c

@@ -607,8 +607,6 @@ static int pas16_release(struct Scsi_Host *shost)
 	if (shost->irq)
 	if (shost->irq)
 		free_irq(shost->irq, shost);
 		free_irq(shost->irq, shost);
 	NCR5380_exit(shost);
 	NCR5380_exit(shost);
-	if (shost->dma_channel != 0xff)
-		free_dma(shost->dma_channel);
 	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);
 	scsi_unregister(shost);
 	scsi_unregister(shost);