Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59244
b: refs/heads/master
c: 6d78b5f
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jul 12, 2007
1 parent 9d73358 commit e0f8394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 4486b86368d72bcac76439638b36667b1c6a1360
refs/heads/master: 6d78b5f9c6cf59c98d3833e09d0ed6aebd6a33d3
10 changes: 4 additions & 6 deletions trunk/arch/arm/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size,
if (!type)
return NULL;

size = PAGE_ALIGN(size);
/*
* Page align the mapping size, taking account of any offset.
*/
size = PAGE_ALIGN(offset + size);

area = get_vm_area(size, VM_IOREMAP);
if (!area)
Expand Down Expand Up @@ -325,11 +328,6 @@ __arm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype)
if (!size || last_addr < phys_addr)
return NULL;

/*
* Page align the mapping size
*/
size = PAGE_ALIGN(last_addr + 1) - phys_addr;

return __arm_ioremap_pfn(pfn, offset, size, mtype);
}
EXPORT_SYMBOL(__arm_ioremap);
Expand Down

0 comments on commit e0f8394

Please sign in to comment.