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/block/DAC960.c | |
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/block/DAC960.c')
-rw-r--r-- | drivers/block/DAC960.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 5496865b297e..f22ed6cc69f2 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -1169,9 +1169,9 @@ static bool DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T | |||
1169 | int i; | 1169 | int i; |
1170 | 1170 | ||
1171 | 1171 | ||
1172 | if (pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) | 1172 | if (pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(32))) |
1173 | return DAC960_Failure(Controller, "DMA mask out of range"); | 1173 | return DAC960_Failure(Controller, "DMA mask out of range"); |
1174 | Controller->BounceBufferLimit = DMA_32BIT_MASK; | 1174 | Controller->BounceBufferLimit = DMA_BIT_MASK(32); |
1175 | 1175 | ||
1176 | if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) { | 1176 | if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) { |
1177 | CommandMailboxesSize = 0; | 1177 | CommandMailboxesSize = 0; |
@@ -1374,8 +1374,8 @@ static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T | |||
1374 | 1374 | ||
1375 | if (!pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(64))) | 1375 | if (!pci_set_dma_mask(Controller->PCIDevice, DMA_BIT_MASK(64))) |
1376 | Controller->BounceBufferLimit = DMA_BIT_MASK(64); | 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_BIT_MASK(32))) |
1378 | Controller->BounceBufferLimit = DMA_32BIT_MASK; | 1378 | Controller->BounceBufferLimit = DMA_BIT_MASK(32); |
1379 | else | 1379 | else |
1380 | return DAC960_Failure(Controller, "DMA mask out of range"); | 1380 | return DAC960_Failure(Controller, "DMA mask out of range"); |
1381 | 1381 | ||