Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5699
b: refs/heads/master
c: fc007dd
h: refs/heads/master
i:
  5697: cd7b18f
  5695: a181f8a
v: v3
  • Loading branch information
Aristeu Sergio Rozanski Filho authored and Linus Torvalds committed Aug 7, 2005
1 parent 73da9b8 commit 16b59b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 8b0ed2fbdbea3f0d34404f1cbfdf02c4a673ca56
refs/heads/master: fc007ddd609ccfce1cd392e65eed05aba8db32ce
10 changes: 7 additions & 3 deletions trunk/arch/ppc/8xx_io/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ static int __init fec_enet_init(void)
struct fec_enet_private *fep;
int i, j, k, err;
unsigned char *eap, *iap, *ba;
unsigned long mem_addr;
dma_addr_t mem_addr;
volatile cbd_t *bdp;
cbd_t *cbd_base;
volatile immap_t *immap;
Expand Down Expand Up @@ -1640,7 +1640,8 @@ static int __init fec_enet_init(void)
printk("FEC initialization failed.\n");
return 1;
}
cbd_base = (cbd_t *)consistent_alloc(GFP_KERNEL, PAGE_SIZE, &mem_addr);
cbd_base = (cbd_t *)dma_alloc_coherent(dev->class_dev.dev, PAGE_SIZE,
&mem_addr, GFP_KERNEL);

/* Set receive and transmit descriptor base.
*/
Expand All @@ -1657,7 +1658,10 @@ static int __init fec_enet_init(void)

/* Allocate a page.
*/
ba = (unsigned char *)consistent_alloc(GFP_KERNEL, PAGE_SIZE, &mem_addr);
ba = (unsigned char *)dma_alloc_coherent(dev->class_dev.dev,
PAGE_SIZE,
&mem_addr,
GFP_KERNEL);
/* BUG: no check for failure */

/* Initialize the BD for every fragment in the page.
Expand Down

0 comments on commit 16b59b5

Please sign in to comment.