提交 af141531 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 12b6b01c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册