diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-04-06 22:01:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:11 -0400 |
commit | 284901a90a9e0b812ca3f5f852cbbfb60d10249d (patch) | |
tree | 06c1b5a0f83c90cfb662f756e7781977ce739ce8 /drivers/scsi/megaraid | |
parent | 6afd142fd0dfba497246d0fab236c20a7b4bf778 (diff) |
dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 4 | ||||
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index b2c19449119d..234f0b7eb21c 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -473,7 +473,7 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
473 | 473 | ||
474 | // Setup the default DMA mask. This would be changed later on | 474 | // Setup the default DMA mask. This would be changed later on |
475 | // depending on hardware capabilities | 475 | // depending on hardware capabilities |
476 | if (pci_set_dma_mask(adapter->pdev, DMA_32BIT_MASK) != 0) { | 476 | if (pci_set_dma_mask(adapter->pdev, DMA_BIT_MASK(32)) != 0) { |
477 | 477 | ||
478 | con_log(CL_ANN, (KERN_WARNING | 478 | con_log(CL_ANN, (KERN_WARNING |
479 | "megaraid: pci_set_dma_mask failed:%d\n", __LINE__)); | 479 | "megaraid: pci_set_dma_mask failed:%d\n", __LINE__)); |
@@ -904,7 +904,7 @@ megaraid_init_mbox(adapter_t *adapter) | |||
904 | con_log(CL_ANN, (KERN_WARNING | 904 | con_log(CL_ANN, (KERN_WARNING |
905 | "megaraid: DMA mask for 64-bit failed\n")); | 905 | "megaraid: DMA mask for 64-bit failed\n")); |
906 | 906 | ||
907 | if (pci_set_dma_mask (adapter->pdev, DMA_32BIT_MASK)) { | 907 | if (pci_set_dma_mask (adapter->pdev, DMA_BIT_MASK(32))) { |
908 | con_log(CL_ANN, (KERN_WARNING | 908 | con_log(CL_ANN, (KERN_WARNING |
909 | "megaraid: 32-bit DMA mask failed\n")); | 909 | "megaraid: 32-bit DMA mask failed\n")); |
910 | goto out_free_sysfs_res; | 910 | goto out_free_sysfs_res; |
diff --git a/drivers/scsi/megaraid/megaraid_sas.c b/drivers/scsi/megaraid/megaraid_sas.c index 713de85771f3..7dc3d1894b1a 100644 --- a/drivers/scsi/megaraid/megaraid_sas.c +++ b/drivers/scsi/megaraid/megaraid_sas.c | |||
@@ -2499,11 +2499,11 @@ megasas_set_dma_mask(struct pci_dev *pdev) | |||
2499 | if (IS_DMA64) { | 2499 | if (IS_DMA64) { |
2500 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) != 0) { | 2500 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) != 0) { |
2501 | 2501 | ||
2502 | if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) | 2502 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) |
2503 | goto fail_set_dma_mask; | 2503 | goto fail_set_dma_mask; |
2504 | } | 2504 | } |
2505 | } else { | 2505 | } else { |
2506 | if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) != 0) | 2506 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) |
2507 | goto fail_set_dma_mask; | 2507 | goto fail_set_dma_mask; |
2508 | } | 2508 | } |
2509 | return 0; | 2509 | return 0; |