mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
allow 64 bit consisten mem addresses
This commit is contained in:
parent
22c52fbf86
commit
65b3128cbe
@ -290,9 +290,11 @@ static int __devinit ddb_probe(struct pci_dev *pdev,
|
|||||||
|
|
||||||
pci_set_master(pdev);
|
pci_set_master(pdev);
|
||||||
|
|
||||||
if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)))
|
if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
|
||||||
if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))
|
pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
|
||||||
return -ENODEV;
|
} else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
|
||||||
|
pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
|
||||||
|
} else return -ENODEV;
|
||||||
|
|
||||||
dev = vzalloc(sizeof(*dev));
|
dev = vzalloc(sizeof(*dev));
|
||||||
if (!dev)
|
if (!dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user