mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	regmap: use debugfs even when no device
This registers regmaps with debugfs even when they do not have an associated device. For example, this is common for syscon regmaps. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
		
							parent
							
								
									12ae3808c1
								
							
						
					
					
						commit
						9b947a13e7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1116,6 +1116,8 @@ struct regmap *__regmap_init(struct device *dev,
 | 
			
		|||
		ret = regmap_attach_dev(dev, map, config);
 | 
			
		||||
		if (ret != 0)
 | 
			
		||||
			goto err_regcache;
 | 
			
		||||
	} else {
 | 
			
		||||
		regmap_debugfs_init(map, config->name);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return map;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue