mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	gpu: host1x: Clean up debugfs on removal
The debugfs files created for host1x are never removed, causing these files to be left dangling in debugfs. This results in a crash when any of these files are accessed after the host1x driver has been removed, as well as a failure to create the debugfs entries when they are added again on driver probe. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
		
							parent
							
								
									80327ce3d4
								
							
						
					
					
						commit
						44156eee91
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -402,6 +402,7 @@ static int host1x_remove(struct platform_device *pdev)
 | 
			
		|||
	struct host1x *host = platform_get_drvdata(pdev);
 | 
			
		||||
 | 
			
		||||
	host1x_unregister(host);
 | 
			
		||||
	host1x_debug_deinit(host);
 | 
			
		||||
	host1x_intr_deinit(host);
 | 
			
		||||
	host1x_syncpt_deinit(host);
 | 
			
		||||
	reset_control_assert(host->rst);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue