mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
[PATCH] Last DMA_xBIT_MASK cleanups
These are the last conversions of pci_set_dma_mask(), pci_set_consistent_dma_mask() and pci_dma_supported() to use DMA_xBIT_MASK constants from linux/dma-mapping.h Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
31cc48bfee
commit
56b146d36d
7 changed files with 21 additions and 17 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/errno.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/delay.h>
|
||||
|
|
@ -619,9 +620,9 @@ static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
|||
pci_set_master(pdev);
|
||||
|
||||
#ifdef USE_64BIT_DMA
|
||||
ret = pci_set_dma_mask(pdev, 0xffffffffffffffffULL);
|
||||
ret = pci_set_dma_mask(pdev, DMA_64BIT_MASK);
|
||||
if (!ret) {
|
||||
ret = pci_set_consistent_dma_mask(pdev, 0xffffffffffffffffULL);
|
||||
ret = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
|
||||
if (ret < 0) {
|
||||
printk(KERN_WARNING "%s: Unable to obtain 64 bit DMA "
|
||||
"for consistent allocations\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue