Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122287
b: refs/heads/master
c: 97b777d
h: refs/heads/master
i:
  122285: 8425498
  122283: da4e477
  122279: eeecd48
  122271: 3d9cb0d
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Nov 25, 2008
1 parent 17b1108 commit ea87029
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d450cfc97bc223e9f94a2fab888bb168e284448
refs/heads/master: 97b777db57f7226e31a4abd5e69d732037743195
13 changes: 11 additions & 2 deletions trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,9 +1591,18 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (pci_enable_device(pdev))
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");
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;
}

Expand Down

0 comments on commit ea87029

Please sign in to comment.