|
@@ -1591,9 +1591,18 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|
if (pci_enable_device(pdev))
|
|
if (pci_enable_device(pdev))
|
|
return -EIO;
|
|
return -EIO;
|
|
|
|
|
|
- if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) {
|
|
|
|
|
|
+ ret = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
|
|
|
|
+
|
|
|
|
+ if (ret) {
|
|
printk(KERN_ERR "ath9k: 32-bit DMA not available\n");
|
|
printk(KERN_ERR "ath9k: 32-bit DMA not available\n");
|
|
- ret = -ENODEV;
|
|
|
|
|
|
+ goto bad;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ret = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);
|
|
|
|
+
|
|
|
|
+ if (ret) {
|
|
|
|
+ printk(KERN_ERR "ath9k: 32-bit DMA consistent "
|
|
|
|
+ "DMA enable faled\n");
|
|
goto bad;
|
|
goto bad;
|
|
}
|
|
}
|
|
|
|
|