summaryrefslogtreecommitdiff
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-18 15:45:00 +0300
committerPaul Mundt <lethal@linux-sh.org>2010-01-18 15:45:00 +0300
commitaf1415314a4190b8ea06e53808d392fcf91555af (patch)
tree9cd7635f3a2481305ead6450de3d73590023b40b /arch/sh/mm
parent12b6b01cb47dc3eefbef866592193661dad7afb9 (diff)
downloadlinux-af1415314a4190b8ea06e53808d392fcf91555af.tar.xz
sh: Flag __ioremap_caller() __init_refok.
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>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r--arch/sh/mm/ioremap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/mm/ioremap.c b/arch/sh/mm/ioremap.c
index e8b65f645aed..a130b2278e92 100644
--- 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;