All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH][trivial] Use DMA_32BIT_MASK where appropriate in
@ 2007-06-11 10:12 Kev Jackson
  0 siblings, 0 replies; only message in thread
From: Kev Jackson @ 2007-06-11 10:12 UTC (permalink / raw)
  To: kernel-janitors

From: Kev Jackson <foamdino@gmail.com>

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

Signed-off-by: Kev Jackson <foamdino@gmail.com>
--
 ivtv-driver.c |    2 +-
 ivtv-driver.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)


diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index e29f949..f27f349 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -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;
 	}
diff --git a/drivers/media/video/ivtv/ivtv-driver.h b/drivers/media/video/ivtv/ivtv-driver.h
index 552f045..05f508e 100644
--- a/drivers/media/video/ivtv/ivtv-driver.h
+++ b/drivers/media/video/ivtv/ivtv-driver.h
@@ -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
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-11 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 10:12 [KJ] [PATCH][trivial] Use DMA_32BIT_MASK where appropriate in Kev Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.