[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
@ -179,6 +179,7 @@
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
|
||||
#include <scsi/sg.h>
|
||||
|
||||
@ -7284,10 +7285,10 @@ ips_init_phase1(struct pci_dev *pci_dev, int *indexPtr)
|
||||
* are guaranteed to be < 4G.
|
||||
*/
|
||||
if (IPS_ENABLE_DMA64 && IPS_HAS_ENH_SGLIST(ha) &&
|
||||
!pci_set_dma_mask(ha->pcidev, 0xffffffffffffffffULL)) {
|
||||
!pci_set_dma_mask(ha->pcidev, DMA_64BIT_MASK)) {
|
||||
(ha)->flags |= IPS_HA_ENH_SG;
|
||||
} else {
|
||||
if (pci_set_dma_mask(ha->pcidev, 0xffffffffULL) != 0) {
|
||||
if (pci_set_dma_mask(ha->pcidev, DMA_32BIT_MASK) != 0) {
|
||||
printk(KERN_WARNING "Unable to set DMA Mask\n");
|
||||
return ips_abort_init(ha, index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user