diff options
author | Santosh Nayak <santoshprasadnayak@gmail.com> | 2012-02-21 04:13:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 09:25:41 -0500 |
commit | 3907b019971fdd626b4740664b6bc7ecdedeec54 (patch) | |
tree | 3d637c94ece64f49009dac68951d9a8f3a1ae708 | |
parent | ec9ee8e2ddb11deaf2b8c8fc703a86a8f815e64f (diff) |
[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>
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 4 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index 935574511ff2..b55d57cc1a1c 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include "cx18-ioctl.h" | 38 | #include "cx18-ioctl.h" |
39 | #include "cx18-controls.h" | 39 | #include "cx18-controls.h" |
40 | #include "tuner-xc2028.h" | 40 | #include "tuner-xc2028.h" |
41 | 41 | #include <linux/dma-mapping.h> | |
42 | #include <media/tveeprom.h> | 42 | #include <media/tveeprom.h> |
43 | 43 | ||
44 | /* If you have already X v4l cards, then set this to X. This way | 44 | /* If you have already X v4l cards, then set this to X. This way |
@@ -812,7 +812,7 @@ static int cx18_setup_pci(struct cx18 *cx, struct pci_dev *pci_dev, | |||
812 | CX18_ERR("Can't enable device %d!\n", cx->instance); | 812 | CX18_ERR("Can't enable device %d!\n", cx->instance); |
813 | return -EIO; | 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 | CX18_ERR("No suitable DMA available, card %d\n", cx->instance); | 816 | CX18_ERR("No suitable DMA available, card %d\n", cx->instance); |
817 | return -EIO; | 817 | return -EIO; |
818 | } | 818 | } |
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 78c44cd3fb6d..679262ed13bc 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -55,7 +55,7 @@ | |||
55 | #include "ivtv-routing.h" | 55 | #include "ivtv-routing.h" |
56 | #include "ivtv-controls.h" | 56 | #include "ivtv-controls.h" |
57 | #include "ivtv-gpio.h" | 57 | #include "ivtv-gpio.h" |
58 | 58 | #include <linux/dma-mapping.h> | |
59 | #include <media/tveeprom.h> | 59 | #include <media/tveeprom.h> |
60 | #include <media/saa7115.h> | 60 | #include <media/saa7115.h> |
61 | #include <media/v4l2-chip-ident.h> | 61 | #include <media/v4l2-chip-ident.h> |
@@ -813,7 +813,7 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev, | |||
813 | IVTV_ERR("Can't enable device!\n"); | 813 | IVTV_ERR("Can't enable device!\n"); |
814 | return -EIO; | 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 | IVTV_ERR("No suitable DMA available.\n"); | 817 | IVTV_ERR("No suitable DMA available.\n"); |
818 | return -EIO; | 818 | return -EIO; |
819 | } | 819 | } |