]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aic7xxx: fix EISA support
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Apr 2019 16:13:58 +0000 (18:13 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 Apr 2019 00:43:10 +0000 (20:43 -0400)
commite5b8e0ef07f4a548078bc9ccdce96a309c245ed6
tree2dd446e15b58d7d7a185206fdaf6aac58e2a9a89
parent03ca794ef3c666ccb944586bfed4ffd9c45022dd
scsi: aic7xxx: fix EISA support

Instead of relying on the now removed NULL argument to
pci_alloc_consistent, switch to the generic DMA API, and store the struct
device so that we can pass it.

Fixes: 3816cf8898b6 ("PCI: Remove NULL device handling from PCI DMA API")
Reported-by: Matthew Whitehead <tedheadster@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Matthew Whitehead <tedheadster@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic7770_osm.c
drivers/scsi/aic7xxx/aic7xxx.h
drivers/scsi/aic7xxx/aic7xxx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c