dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 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>
This commit is contained in:
committed by
Linus Torvalds
parent
6afd142fd0
commit
284901a90a
@@ -358,7 +358,7 @@ he_init_one(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent)
|
||||
|
||||
if (pci_enable_device(pci_dev))
|
||||
return -EIO;
|
||||
if (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK) != 0) {
|
||||
if (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)) != 0) {
|
||||
printk(KERN_WARNING "he: no suitable dma available\n");
|
||||
err = -EIO;
|
||||
goto init_one_failure;
|
||||
|
@@ -1957,12 +1957,12 @@ static int __devinit lanai_pci_start(struct lanai_dev *lanai)
|
||||
return -ENXIO;
|
||||
}
|
||||
pci_set_master(pci);
|
||||
if (pci_set_dma_mask(pci, DMA_32BIT_MASK) != 0) {
|
||||
if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) != 0) {
|
||||
printk(KERN_WARNING DEV_LABEL
|
||||
"(itf %d): No suitable DMA available.\n", lanai->number);
|
||||
return -EBUSY;
|
||||
}
|
||||
if (pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) != 0) {
|
||||
if (pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) != 0) {
|
||||
printk(KERN_WARNING DEV_LABEL
|
||||
"(itf %d): No suitable DMA available.\n", lanai->number);
|
||||
return -EBUSY;
|
||||
|
Reference in New Issue
Block a user