* [KJ] [PATCH] aacraid: Use DMA_31BIT_MASK
@ 2007-02-28 9:31 Tobias Klauser
0 siblings, 0 replies; only message in thread
From: Tobias Klauser @ 2007-02-28 9:31 UTC (permalink / raw)
To: kernel-janitors; +Cc: linux-scsi
Use constants from linux/dma-mapping.h for pci_set_dma_mask() and
pci_set_consistent_dma_mask()
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
drivers/scsi/aacraid/commsup.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
index 1b97f60..bb4fe48 100644
--- a/drivers/scsi/aacraid/commsup.c
+++ b/drivers/scsi/aacraid/commsup.c
@@ -34,6 +34,7 @@
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/pci.h>
+#include <linux/dma-mapping.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/completion.h>
@@ -1113,8 +1114,8 @@ static int _aac_reset_adapter(struct aac_dev *aac)
((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_32BIT_MASK))))
goto out;
} else {
- if (((retval = pci_set_dma_mask(aac->pdev, 0x7FFFFFFFULL))) ||
- ((retval = pci_set_consistent_dma_mask(aac->pdev, 0x7FFFFFFFULL))))
+ if (((retval = pci_set_dma_mask(aac->pdev, DMA_31BIT_MASK))) ||
+ ((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_31BIT_MASK))))
goto out;
}
if ((retval = (*(aac_get_driver_ident(index)->init))(aac)))
--
1.5.0.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-28 9:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-28 9:31 [KJ] [PATCH] aacraid: Use DMA_31BIT_MASK Tobias Klauser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox