Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261847
b: refs/heads/master
c: b7785e9
h: refs/heads/master
i:
  261845: 4bd41bf
  261843: d8ad55c
  261839: a1d6fd5
v: v3
  • Loading branch information
Geert Uytterhoeven committed Jul 30, 2011
1 parent 898077a commit 06b98ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 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: 1c388919d89ca35741e9c4d3255adf87f76f0c06
refs/heads/master: b7785e954348465e1926d9c10ff3e49c207d4ec6
22 changes: 11 additions & 11 deletions trunk/arch/m68k/amiga/chipram.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,21 @@ void *amiga_chip_alloc_res(unsigned long size, struct resource *res)
void amiga_chip_free(void *ptr)
{
unsigned long start = ZTWO_PADDR(ptr);
struct resource **p, *res;
struct resource *res;
unsigned long size;

for (p = &chipram_res.child; (res = *p); p = &res->sibling) {
if (res->start != start)
continue;
*p = res->sibling;
size = resource_size(res);
pr_debug("amiga_chip_free: free %lu bytes at %p\n", size, ptr);
atomic_add(size, &chipavail);
kfree(res);
res = lookup_resource(&chipram_res, start);
if (!res) {
pr_err("amiga_chip_free: trying to free nonexistent region at "
"%p\n", ptr);
return;
}
pr_err("amiga_chip_free: trying to free nonexistent region at %p\n",
ptr);

size = resource_size(res);
pr_debug("amiga_chip_free: free %lu bytes at %p\n", size, ptr);
atomic_add(size, &chipavail);
release_resource(res);
kfree(res);
}
EXPORT_SYMBOL(amiga_chip_free);

Expand Down

0 comments on commit 06b98ae

Please sign in to comment.