]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: dpt_i2o: use dma_set_mask
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 13:10:15 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 15 Nov 2018 19:27:07 +0000 (14:27 -0500)
commit7c9e15946af525a62d9da98d0bb9242152cf9e22
tree71555285f4810ad9bfefccd519934c998523deac
parent2979f4c930edd37760fa4b3df181493881a3bdca
scsi: dpt_i2o: use dma_set_mask

The driver currently uses pci_set_dma_mask despite otherwise using the
generic DMA API.  Also move the dma_get_required_mask check before actually
setting the dma mask, so that we don't end up with inconsistent settings in
corner cases.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c