Replace all DMA_nBIT_MASK macro with DMA_BIT_MASK(n)
This is the second go through of the old DMA_nBIT_MASK macro,and there're not so many of them left,so I put them into one patch.I hope this is the last round. After this the definition of the old DMA_nBIT_MASK macro could be removed. Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Tony Lindgren <tony@atomide.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Greg KH <greg@kroah.com> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
316cb4ef3e
commit
e930438c42
@@ -2591,13 +2591,13 @@ static int
|
||||
jme_pci_dma64(struct pci_dev *pdev)
|
||||
{
|
||||
if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 &&
|
||||
!pci_set_dma_mask(pdev, DMA_64BIT_MASK))
|
||||
if (!pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK))
|
||||
!pci_set_dma_mask(pdev, DMA_BIT_MASK(64)))
|
||||
if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)))
|
||||
return 1;
|
||||
|
||||
if (pdev->device == PCI_DEVICE_ID_JMICRON_JMC250 &&
|
||||
!pci_set_dma_mask(pdev, DMA_40BIT_MASK))
|
||||
if (!pci_set_consistent_dma_mask(pdev, DMA_40BIT_MASK))
|
||||
!pci_set_dma_mask(pdev, DMA_BIT_MASK(40)))
|
||||
if (!pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(40)))
|
||||
return 1;
|
||||
|
||||
if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))
|
||||
|
Reference in New Issue
Block a user