Skip to content

Commit

Permalink
sh: Flag __ioremap_caller() __init_refok.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Jan 18, 2010
1 parent 12b6b01 commit af14153
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/sh/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af14153

Please sign in to comment.