提交 b3b07762 编写于 作者: C Christoph Hellwig 提交者: Martin K. Petersen

scsi: arcmsr: use dma_set_mask

The driver currently uses pci_set_dma_mask despite otherwise using the
generic DMA API.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 d90996da
...@@ -903,9 +903,9 @@ static int arcmsr_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -903,9 +903,9 @@ static int arcmsr_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if(!host){ if(!host){
goto pci_disable_dev; goto pci_disable_dev;
} }
error = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); error = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
if(error){ if(error){
error = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); error = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
if(error){ if(error){
printk(KERN_WARNING printk(KERN_WARNING
"scsi%d: No suitable DMA mask available\n", "scsi%d: No suitable DMA mask available\n",
...@@ -1049,9 +1049,9 @@ static int arcmsr_resume(struct pci_dev *pdev) ...@@ -1049,9 +1049,9 @@ static int arcmsr_resume(struct pci_dev *pdev)
pr_warn("%s: pci_enable_device error\n", __func__); pr_warn("%s: pci_enable_device error\n", __func__);
return -ENODEV; return -ENODEV;
} }
error = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); error = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
if (error) { if (error) {
error = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); error = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
if (error) { if (error) {
pr_warn("scsi%d: No suitable DMA mask available\n", pr_warn("scsi%d: No suitable DMA mask available\n",
host->host_no); host->host_no);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册