Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109133
b: refs/heads/master
c: 61a4e9e
h: refs/heads/master
i:
  109131: 9e6e2cb
v: v3
  • Loading branch information
Timur Tabi authored and Kumar Gala committed Aug 21, 2008
1 parent 5524dc6 commit 9a64bd7
Show file tree
Hide file tree
Showing 3 changed files with 10 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: d27a736c7a62c3451e389aa8e0dfc64dab119b9b
refs/heads/master: 61a4e9e91dd3916ef91aa4899b7271bba0248677
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/sysdev/qe_lib/ucc_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** ucc
uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast));
if (uccf->uf_regs == NULL) {
printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__);
kfree(uccf);
return -ENOMEM;
}

Expand Down Expand Up @@ -355,6 +356,9 @@ void ucc_fast_free(struct ucc_fast_private * uccf)
if (uccf->ucc_fast_rx_virtual_fifo_base_offset)
qe_muram_free(uccf->ucc_fast_rx_virtual_fifo_base_offset);

if (uccf->uf_regs)
iounmap(uccf->uf_regs);

kfree(uccf);
}
EXPORT_SYMBOL(ucc_fast_free);
8 changes: 5 additions & 3 deletions trunk/arch/powerpc/sysdev/qe_lib/ucc_slow.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
uccs->us_regs = ioremap(us_info->regs, sizeof(struct ucc_slow));
if (uccs->us_regs == NULL) {
printk(KERN_ERR "%s: Cannot map UCC registers\n", __func__);
kfree(uccs);
return -ENOMEM;
}

Expand Down Expand Up @@ -367,10 +368,11 @@ void ucc_slow_free(struct ucc_slow_private * uccs)
if (uccs->tx_base_offset)
qe_muram_free(uccs->tx_base_offset);

if (uccs->us_pram) {
if (uccs->us_pram)
qe_muram_free(uccs->us_pram_offset);
uccs->us_pram = NULL;
}

if (uccs->us_regs)
iounmap(uccs->us_regs);

kfree(uccs);
}
Expand Down

0 comments on commit 9a64bd7

Please sign in to comment.