projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b6b01
)
sh: Flag __ioremap_caller() __init_refok.
author
Paul Mundt
<lethal@linux-sh.org>
Mon, 18 Jan 2010 12:45:00 +0000
(21:45 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 18 Jan 2010 12:45:00 +0000
(21:45 +0900)
The mem_init_done test makes sure that this path is only entered in
__init cases, so leaving ioremap_fixed() as __init and flagging the
caller __init_refok is sufficient.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/ioremap.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/mm/ioremap.c
b/arch/sh/mm/ioremap.c
index e8b65f645aeda7de719535b794764436e5447f20..a130b2278e92ca47430df7e1040b6db62d2806c9 100644
(file)
--- a/
arch/sh/mm/ioremap.c
+++ b/
arch/sh/mm/ioremap.c
@@
-33,8
+33,9
@@
* have to convert them into an offset in a page-aligned mapping, but the
* caller shouldn't need to know that small detail.
*/
-void __iomem *__ioremap_caller(unsigned long phys_addr, unsigned long size,
- unsigned long flags, void *caller)
+void __iomem * __init_refok
+__ioremap_caller(unsigned long phys_addr, unsigned long size,
+ unsigned long flags, void *caller)
{
struct vm_struct *area;
unsigned long offset, last_addr, addr, orig_addr;