]> 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)
commitec88e6fd29d16a0630b455e16c3b571ccd157f50
tree2dd446e15b58d7d7a185206fdaf6aac58e2a9a89
parent44edb486c3f7d10e6ab9c1bbbe9111342e652f17
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: fbdaf97092fa ("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