Commit a0c5b7fc authored by Jeff Garzik's avatar Jeff Garzik

Set PCI DMA masks in old-OSS via82cxxx audio driver.

parent 67bfb5a7
...@@ -3412,11 +3412,17 @@ static int __devinit via_init_one (struct pci_dev *pdev, const struct pci_device ...@@ -3412,11 +3412,17 @@ static int __devinit via_init_one (struct pci_dev *pdev, const struct pci_device
if (rc) if (rc)
goto err_out; goto err_out;
rc = pci_request_regions (pdev, "via82cxxx_audio"); rc = pci_request_regions (pdev, "via82cxxx_audio");
if (rc) if (rc)
goto err_out_disable; goto err_out_disable;
rc = pci_set_dma_mask(pdev, 0xffffffffULL);
if (rc)
goto err_out_res;
rc = pci_set_consistent_dma_mask(pdev, 0xffffffffULL);
if (rc)
goto err_out_res;
card = kmalloc (sizeof (*card), GFP_KERNEL); card = kmalloc (sizeof (*card), GFP_KERNEL);
if (!card) { if (!card) {
printk (KERN_ERR PFX "out of memory, aborting\n"); printk (KERN_ERR PFX "out of memory, aborting\n");
......
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