mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	usb: chipidea: host: set host to be null after hcd is freed
Set ci->hcd and ci->otg.host to be null in host_stop since the hcd already freed. Signed-off-by: Li Jun <jun.li@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com>
This commit is contained in:
		
							parent
							
								
									4b19b78aa6
								
							
						
					
					
						commit
						43a404577a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -190,6 +190,8 @@ static void host_stop(struct ci_hdrc *ci)
 | 
			
		|||
			(ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON))
 | 
			
		||||
				regulator_disable(ci->platdata->reg_vbus);
 | 
			
		||||
	}
 | 
			
		||||
	ci->hcd = NULL;
 | 
			
		||||
	ci->otg.host = NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue