forked from mirrors/linux
		
	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>
This commit is contained in:
		
							parent
							
								
									12b6b01cb4
								
							
						
					
					
						commit
						af1415314a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -33,8 +33,9 @@
 | 
				
			||||||
 * have to convert them into an offset in a page-aligned mapping, but the
 | 
					 * have to convert them into an offset in a page-aligned mapping, but the
 | 
				
			||||||
 * caller shouldn't need to know that small detail.
 | 
					 * caller shouldn't need to know that small detail.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
void __iomem *__ioremap_caller(unsigned long phys_addr, unsigned long size,
 | 
					void __iomem * __init_refok
 | 
				
			||||||
			       unsigned long flags, void *caller)
 | 
					__ioremap_caller(unsigned long phys_addr, unsigned long size,
 | 
				
			||||||
 | 
							 unsigned long flags, void *caller)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct vm_struct *area;
 | 
						struct vm_struct *area;
 | 
				
			||||||
	unsigned long offset, last_addr, addr, orig_addr;
 | 
						unsigned long offset, last_addr, addr, orig_addr;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue