[SCSI] aacraid: Use DMA mask defines
From: Mark Haverkamp <markh@osdl.org> Received from Mark Salyzyn. This patch changes the driver over to utilizing the DMA_64BIT_MASK and DMA_32BIT_MASK manifests. Applies to the scsi-rc-fixes-2.6 git tree. Signed-off-by: Mark Haverkamp <markh@osdl.org> Rejects fixed up and Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
@@ -751,8 +751,8 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
|
||||
if (pci_enable_device(pdev))
|
||||
goto out;
|
||||
|
||||
if (pci_set_dma_mask(pdev, 0xFFFFFFFFULL) ||
|
||||
pci_set_consistent_dma_mask(pdev, 0xFFFFFFFFULL))
|
||||
if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) ||
|
||||
pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))
|
||||
goto out;
|
||||
/*
|
||||
* If the quirk31 bit is set, the adapter needs adapter
|
||||
@@ -795,9 +795,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
|
||||
* address space.
|
||||
*/
|
||||
if (aac_drivers[index].quirks & AAC_QUIRK_31BIT)
|
||||
if (pci_set_dma_mask(pdev, 0xFFFFFFFFULL))
|
||||
goto out_free_fibs;
|
||||
|
||||
if (pci_set_dma_mask(pdev, DMA_32BIT_MASK))
|
||||
goto out_deinit;
|
||||
|
||||
aac->maximum_num_channels = aac_drivers[index].channels;
|
||||
aac_get_adapter_info(aac);
|
||||
|
||||
|
Reference in New Issue
Block a user