diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/DAC960.c | 4 | ||||
-rw-r--r-- | drivers/block/cciss.c | 2 | ||||
-rw-r--r-- | drivers/block/sx8.c | 4 | ||||
-rw-r--r-- | drivers/block/umem.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index f6a337c34ac4..5496865b297e 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -1372,8 +1372,8 @@ static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T | |||
1372 | dma_addr_t CommandMailboxDMA; | 1372 | dma_addr_t CommandMailboxDMA; |
1373 | DAC960_V2_CommandStatus_T CommandStatus; | 1373 | DAC960_V2_CommandStatus_T CommandStatus; |
1374 | 1374 | ||
1375 | if (!pci_set_dma_mask(Controller->PCIDevice, DMA_64BIT_MASK)) | 1375 | if (!pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(64))) |
1376 | Controller->BounceBufferLimit = DMA_64BIT_MASK; | 1376 | Controller->BounceBufferLimit = DMA_BIT_MASK(64); |
1377 | else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) | 1377 | else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) |
1378 | Controller->BounceBufferLimit = DMA_32BIT_MASK; | 1378 | Controller->BounceBufferLimit = DMA_32BIT_MASK; |
1379 | else | 1379 | else |
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 5d0e135824f9..149a611e8fe5 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -3637,7 +3637,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, | |||
3637 | hba[i]->pdev = pdev; | 3637 | hba[i]->pdev = pdev; |
3638 | 3638 | ||
3639 | /* configure PCI DMA stuff */ | 3639 | /* configure PCI DMA stuff */ |
3640 | if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK)) | 3640 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) |
3641 | dac = 1; | 3641 | dac = 1; |
3642 | else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) | 3642 | else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK)) |
3643 | dac = 0; | 3643 | dac = 0; |
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index a18e1ca0f761..db5783ace1e4 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -1586,9 +1586,9 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1586 | goto err_out; | 1586 | goto err_out; |
1587 | 1587 | ||
1588 | #ifdef IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */ | 1588 | #ifdef IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */ |
1589 | rc = pci_set_dma_mask(pdev, DMA_64BIT_MASK); | 1589 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); |
1590 | if (!rc) { | 1590 | if (!rc) { |
1591 | rc = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); | 1591 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); |
1592 | if (rc) { | 1592 | if (rc) { |
1593 | printk(KERN_ERR DRV_NAME "(%s): consistent DMA mask failure\n", | 1593 | printk(KERN_ERR DRV_NAME "(%s): consistent DMA mask failure\n", |
1594 | pci_name(pdev)); | 1594 | pci_name(pdev)); |
diff --git a/drivers/block/umem.c b/drivers/block/umem.c index c24e1bdbad43..e93e99c9103c 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c | |||
@@ -829,7 +829,7 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, | |||
829 | dev_printk(KERN_INFO, &dev->dev, | 829 | dev_printk(KERN_INFO, &dev->dev, |
830 | "Micro Memory(tm) controller found (PCI Mem Module (Battery Backup))\n"); | 830 | "Micro Memory(tm) controller found (PCI Mem Module (Battery Backup))\n"); |
831 | 831 | ||
832 | if (pci_set_dma_mask(dev, DMA_64BIT_MASK) && | 832 | if (pci_set_dma_mask(dev, DMA_BIT_MASK(64)) && |
833 | pci_set_dma_mask(dev, DMA_32BIT_MASK)) { | 833 | pci_set_dma_mask(dev, DMA_32BIT_MASK)) { |
834 | dev_printk(KERN_WARNING, &dev->dev, "NO suitable DMA found\n"); | 834 | dev_printk(KERN_WARNING, &dev->dev, "NO suitable DMA found\n"); |
835 | return -ENOMEM; | 835 | return -ENOMEM; |