diff options
Diffstat (limited to 'drivers/net/chelsio/cxgb2.c')
-rw-r--r-- | drivers/net/chelsio/cxgb2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c index 9b6011e7678e..fa06994f9737 100644 --- a/drivers/net/chelsio/cxgb2.c +++ b/drivers/net/chelsio/cxgb2.c | |||
@@ -1056,17 +1056,17 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
1056 | goto out_disable_pdev; | 1056 | goto out_disable_pdev; |
1057 | } | 1057 | } |
1058 | 1058 | ||
1059 | if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK)) { | 1059 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { |
1060 | pci_using_dac = 1; | 1060 | pci_using_dac = 1; |
1061 | 1061 | ||
1062 | if (pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) { | 1062 | if (pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { |
1063 | CH_ERR("%s: unable to obtain 64-bit DMA for " | 1063 | CH_ERR("%s: unable to obtain 64-bit DMA for " |
1064 | "consistent allocations\n", pci_name(pdev)); | 1064 | "consistent allocations\n", pci_name(pdev)); |
1065 | err = -ENODEV; | 1065 | err = -ENODEV; |
1066 | goto out_disable_pdev; | 1066 | goto out_disable_pdev; |
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | } else if ((err = pci_set_dma_mask(pdev, DMA_32BIT_MASK)) != 0) { | 1069 | } else if ((err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) != 0) { |
1070 | CH_ERR("%s: no usable DMA configuration\n", pci_name(pdev)); | 1070 | CH_ERR("%s: no usable DMA configuration\n", pci_name(pdev)); |
1071 | goto out_disable_pdev; | 1071 | goto out_disable_pdev; |
1072 | } | 1072 | } |