mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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<[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6afd142fd0
commit
284901a90a
173 changed files with 309 additions and 313 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue