From: Tobias Klauser Subject: [KJ] [UPDATE PATCH] drivers/media/video/bttv-driver.c: Use the DMA_32BIT_MASK constant Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() This patch includes dma-mapping.h explicitly because it caused errors on some architectures otherwise. See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details Signed-off-by: Tobias Klauser Signed-off-by: Domen Puncer --- bttv-driver.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: quilt/drivers/media/video/bttv-driver.c =================================================================== --- quilt.orig/drivers/media/video/bttv-driver.c +++ quilt/drivers/media/video/bttv-driver.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -3813,7 +3814,7 @@ static int __devinit bttv_probe(struct p btv->c.nr); return -EIO; } - if (pci_set_dma_mask(dev, 0xffffffff)) { + if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) { printk(KERN_WARNING "bttv%d: No suitable DMA available.\n", btv->c.nr); return -EIO;