diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-04-06 22:01:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:10 -0400 |
commit | 50cf156af7dc68a44409bef636585ef88ebbab34 (patch) | |
tree | a70e4a9ad805904f6e98bf654d6de7a55fe77e98 /drivers/net/enic/enic_main.c | |
parent | e911e0d9af90e4f1b4f2cf183a0993f9fed9f9c6 (diff) |
dma-mapping: replace all DMA_40BIT_MASK macro with DMA_BIT_MASK(40)
Replace all DMA_40BIT_MASK macro with DMA_BIT_MASK(40)
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/net/enic/enic_main.c')
-rw-r--r-- | drivers/net/enic/enic_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 03403a51f7ea..5b87105ac9e0 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -1685,7 +1685,7 @@ static int __devinit enic_probe(struct pci_dev *pdev, | |||
1685 | * fail to 32-bit. | 1685 | * fail to 32-bit. |
1686 | */ | 1686 | */ |
1687 | 1687 | ||
1688 | err = pci_set_dma_mask(pdev, DMA_40BIT_MASK); | 1688 | err = pci_set_dma_mask(pdev, DMA_BIT_MASK(40)); |
1689 | if (err) { | 1689 | if (err) { |
1690 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 1690 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); |
1691 | if (err) { | 1691 | if (err) { |
@@ -1701,7 +1701,7 @@ static int __devinit enic_probe(struct pci_dev *pdev, | |||
1701 | goto err_out_release_regions; | 1701 | goto err_out_release_regions; |
1702 | } | 1702 | } |
1703 | } else { | 1703 | } else { |
1704 | err = pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK); | 1704 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(40)); |
1705 | if (err) { | 1705 | if (err) { |
1706 | printk(KERN_ERR PFX | 1706 | printk(KERN_ERR PFX |
1707 | "Unable to obtain 40-bit DMA " | 1707 | "Unable to obtain 40-bit DMA " |