* [patch] Use DMA_32BIT_MASK where appropriate in drivers/scsi/3w-xxxx.c|h
@ 2007-06-06 9:53 Kev Jackson
0 siblings, 0 replies; only message in thread
From: Kev Jackson @ 2007-06-06 9:53 UTC (permalink / raw)
To: linuxraid, linux-scsi
From: Kev Jackson <foamdino@gmail.com>
-Remove TW_DMA_MASK and use DMA_32BIT_MASK as listed in kernel janitors TODO list
Signed-off-by: Kev Jackson <foamdino@gmail.com>
---
drivers/scsi/3w-xxxx.c | 2 +-
drivers/scsi/3w-xxxx.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
-patch applies fine on current kernel tree & new kernel compiles
-previously submitted to kernel-janitors@lists.osdl.org
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
index 656bdb1..15ca2a0 100644
--- a/drivers/scsi/3w-xxxx.c
+++ b/drivers/scsi/3w-xxxx.c
@@ -2338,7 +2338,7 @@ static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *
pci_set_master(pdev);
- retval = pci_set_dma_mask(pdev, TW_DMA_MASK);
+ retval = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
if (retval) {
printk(KERN_WARNING "3w-xxxx: Failed to set dma mask.");
goto out_disable_device;
diff --git a/drivers/scsi/3w-xxxx.h b/drivers/scsi/3w-xxxx.h
index 0742e68..4efd6c2 100644
--- a/drivers/scsi/3w-xxxx.h
+++ b/drivers/scsi/3w-xxxx.h
@@ -234,7 +234,6 @@ static unsigned char tw_sense_table[][4] =
#define TW_IOCTL_TIMEOUT 25 /* 25 seconds */
#define TW_IOCTL_CHRDEV_TIMEOUT 60 /* 60 seconds */
#define TW_IOCTL_CHRDEV_FREE -1
-#define TW_DMA_MASK DMA_32BIT_MASK
#define TW_MAX_CDB_LEN 16
/* Bitmask macros to eliminate bitfields */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-06 9:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 9:53 [patch] Use DMA_32BIT_MASK where appropriate in drivers/scsi/3w-xxxx.c|h Kev Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).