|
@@ -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,
|
|
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;
|
|
}
|
|
}
|