Commit a0c5b7fc authored by Jeff Garzik's avatar Jeff Garzik

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

parent 67bfb5a7
......@@ -3411,12 +3411,18 @@ static int __devinit via_init_one (struct pci_dev *pdev, const struct pci_device
rc = pci_enable_device (pdev);
if (rc)
goto err_out;
rc = pci_request_regions (pdev, "via82cxxx_audio");
if (rc)
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);
if (!card) {
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