Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] Driver: video: Use the macro DMA_BIT_MASK()

Use the macro DMA_BIT_MASK instead of the constant 0xffffffff.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Santosh Nayak and committed by
Mauro Carvalho Chehab
3907b019 ec9ee8e2

+4 -4
+2 -2
drivers/media/video/cx18/cx18-driver.c
··· 38 38 #include "cx18-ioctl.h" 39 39 #include "cx18-controls.h" 40 40 #include "tuner-xc2028.h" 41 - 41 + #include <linux/dma-mapping.h> 42 42 #include <media/tveeprom.h> 43 43 44 44 /* If you have already X v4l cards, then set this to X. This way ··· 812 812 CX18_ERR("Can't enable device %d!\n", cx->instance); 813 813 return -EIO; 814 814 } 815 - if (pci_set_dma_mask(pci_dev, 0xffffffff)) { 815 + if (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) { 816 816 CX18_ERR("No suitable DMA available, card %d\n", cx->instance); 817 817 return -EIO; 818 818 }
+2 -2
drivers/media/video/ivtv/ivtv-driver.c
··· 55 55 #include "ivtv-routing.h" 56 56 #include "ivtv-controls.h" 57 57 #include "ivtv-gpio.h" 58 - 58 + #include <linux/dma-mapping.h> 59 59 #include <media/tveeprom.h> 60 60 #include <media/saa7115.h> 61 61 #include <media/v4l2-chip-ident.h> ··· 813 813 IVTV_ERR("Can't enable device!\n"); 814 814 return -EIO; 815 815 } 816 - if (pci_set_dma_mask(pdev, 0xffffffff)) { 816 + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { 817 817 IVTV_ERR("No suitable DMA available.\n"); 818 818 return -EIO; 819 819 }