Skip to contentSkip to conversation

Use DMA_32BIT_MASK where appropriate in

PATCH New Kev Jackson 1 participant 1 message Jun 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use DMA_32BIT_MASK where appropriate in

From: Kev Jackson <[email protected]>

-Replaces 0xffff... with DMA_32BIT_MASK in pci_set_dma_mask() call as per Kernel Janitors TODO list

--

 ivtv-driver.c |    2 +-
 ivtv-driver.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/media/video/ivtv/ivtv-driver.c +1 -1
index e29f949..f27f349 100644
@@ -732,7 +732,7 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *dev,
 		IVTV_ERR("Can't enable device %d!\n", itv->num);
 		return -EIO;
 	}
-	if (pci_set_dma_mask(dev, 0xffffffff)) {
+	if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) {
 		IVTV_ERR("No suitable DMA available on card %d.\n", itv->num);
 		return -EIO;
 	}
drivers/media/video/ivtv/ivtv-driver.h +1 -0
index 552f045..05f508e 100644
@@ -54,6 +54,7 @@
 #include <linux/pagemap.h>
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
+#include <linux/dma-mapping.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors