Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267505
b: refs/heads/master
c: c13d2ad
h: refs/heads/master
i:
  267503: ee4fe0b
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent d2eb46b commit 6a47f9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 49d468f64d59016030c2835a423833e7b45ccce5
refs/heads/master: c13d2ad0599a73d87871c5a2b4468e8cbd4bf369
7 changes: 6 additions & 1 deletion trunk/drivers/staging/brcm80211/brcmsmac/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,18 @@ static bool _dma_alloc(struct dma_info *di, uint direction)
void *dma_alloc_consistent(struct pci_dev *pdev, uint size, u16 align_bits,
uint *alloced, unsigned long *pap)
{
void *rc;
dma_addr_t dma_addr;

if (align_bits) {
u16 align = (1 << align_bits);
if (!IS_ALIGNED(PAGE_SIZE, align))
size += align;
*alloced = size;
}
return pci_alloc_consistent(pdev, size, (dma_addr_t *) pap);
rc = pci_alloc_consistent(pdev, size, &dma_addr);
*pap = dma_addr;
return rc;
}

/* !! may be called with core in reset */
Expand Down

0 comments on commit 6a47f9f

Please sign in to comment.