PM / hibernate: convert simple_strtoul to kstrtoul
Replace obsolete function. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
					parent
					
						
							
								8a54cd5bd6
							
						
					
				
			
			
				commit
				
					
						317cf7e5e8
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -1115,7 +1115,10 @@ static int __init resumewait_setup(char *str)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int __init resumedelay_setup(char *str)
 | 
					static int __init resumedelay_setup(char *str)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	resume_delay = simple_strtoul(str, NULL, 0);
 | 
						int rc = kstrtoul(str, 0, (unsigned long *)&resume_delay);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (rc)
 | 
				
			||||||
 | 
							return rc;
 | 
				
			||||||
	return 1;
 | 
						return 1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue