mmc: mvsdio: Convert to devm_ioremap_resource
devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource() instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
		
					parent
					
						
							
								71ef1ea418
							
						
					
				
			
			
				commit
				
					
						e02d293004
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -775,9 +775,9 @@ static int __init mvsd_probe(struct platform_device *pdev)
 | 
			
		|||
 | 
			
		||||
	spin_lock_init(&host->lock);
 | 
			
		||||
 | 
			
		||||
	host->base = devm_request_and_ioremap(&pdev->dev, r);
 | 
			
		||||
	if (!host->base) {
 | 
			
		||||
		ret = -ENOMEM;
 | 
			
		||||
	host->base = devm_ioremap_resource(&pdev->dev, r);
 | 
			
		||||
	if (IS_ERR(host->base)) {
 | 
			
		||||
		ret = PTR_ERR(host->base);
 | 
			
		||||
		goto out;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue