[PATCH] Replace 0xff.. with correct DMA_xBIT_MASK
Replace all occurences of 0xff.. in calls to function pci_set_dma_mask() and pci_set_consistant_dma_mask() with the corresponding DMA_xBIT_MASK from linux/dma-mapping.h. Signed-off-by: Matthias Gehre <M.Gehre@gmx.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
60c904ae5b
commit
910638ae7e
@@ -42,6 +42,7 @@
|
||||
#include <linux/pci.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <scsi/scsicam.h>
|
||||
|
||||
#include <asm/dma.h>
|
||||
@@ -677,7 +678,7 @@ static int __init BusLogic_InitializeMultiMasterProbeInfo(struct BusLogic_HostAd
|
||||
if (pci_enable_device(PCI_Device))
|
||||
continue;
|
||||
|
||||
if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff))
|
||||
if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK ))
|
||||
continue;
|
||||
|
||||
Bus = PCI_Device->bus->number;
|
||||
@@ -832,7 +833,7 @@ static int __init BusLogic_InitializeMultiMasterProbeInfo(struct BusLogic_HostAd
|
||||
if (pci_enable_device(PCI_Device))
|
||||
continue;
|
||||
|
||||
if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff))
|
||||
if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK))
|
||||
continue;
|
||||
|
||||
Bus = PCI_Device->bus->number;
|
||||
@@ -886,7 +887,7 @@ static int __init BusLogic_InitializeFlashPointProbeInfo(struct BusLogic_HostAda
|
||||
if (pci_enable_device(PCI_Device))
|
||||
continue;
|
||||
|
||||
if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff))
|
||||
if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK))
|
||||
continue;
|
||||
|
||||
Bus = PCI_Device->bus->number;
|
||||
|
Reference in New Issue
Block a user