Commit 3907b019 authored by Santosh Nayak's avatar Santosh Nayak Committed by Mauro Carvalho Chehab

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

Use the macro DMA_BIT_MASK instead of the constant  0xffffffff.
Signed-off-by: default avatarSantosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ec9ee8e2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "cx18-ioctl.h" #include "cx18-ioctl.h"
#include "cx18-controls.h" #include "cx18-controls.h"
#include "tuner-xc2028.h" #include "tuner-xc2028.h"
#include <linux/dma-mapping.h>
#include <media/tveeprom.h> #include <media/tveeprom.h>
/* If you have already X v4l cards, then set this to X. This way /* 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,7 +812,7 @@ static int cx18_setup_pci(struct cx18 *cx, struct pci_dev *pci_dev,
CX18_ERR("Can't enable device %d!\n", cx->instance); CX18_ERR("Can't enable device %d!\n", cx->instance);
return -EIO; return -EIO;
} }
if (pci_set_dma_mask(pci_dev, 0xffffffff)) { if (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) {
CX18_ERR("No suitable DMA available, card %d\n", cx->instance); CX18_ERR("No suitable DMA available, card %d\n", cx->instance);
return -EIO; return -EIO;
} }
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
#include "ivtv-routing.h" #include "ivtv-routing.h"
#include "ivtv-controls.h" #include "ivtv-controls.h"
#include "ivtv-gpio.h" #include "ivtv-gpio.h"
#include <linux/dma-mapping.h>
#include <media/tveeprom.h> #include <media/tveeprom.h>
#include <media/saa7115.h> #include <media/saa7115.h>
#include <media/v4l2-chip-ident.h> #include <media/v4l2-chip-ident.h>
...@@ -813,7 +813,7 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev, ...@@ -813,7 +813,7 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev,
IVTV_ERR("Can't enable device!\n"); IVTV_ERR("Can't enable device!\n");
return -EIO; return -EIO;
} }
if (pci_set_dma_mask(pdev, 0xffffffff)) { if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
IVTV_ERR("No suitable DMA available.\n"); IVTV_ERR("No suitable DMA available.\n");
return -EIO; return -EIO;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment