diff options
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 | ||