mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	nvdimm: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
This commit is contained in:
		
							parent
							
								
									c1dbd8a849
								
							
						
					
					
						commit
						fd774e36fe
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -2,11 +2,11 @@ | |||
| 
 | ||||
| #define pr_fmt(fmt) "of_pmem: " fmt | ||||
| 
 | ||||
| #include <linux/of_platform.h> | ||||
| #include <linux/of_address.h> | ||||
| #include <linux/of.h> | ||||
| #include <linux/libnvdimm.h> | ||||
| #include <linux/module.h> | ||||
| #include <linux/ioport.h> | ||||
| #include <linux/platform_device.h> | ||||
| #include <linux/slab.h> | ||||
| 
 | ||||
| struct of_pmem_private { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Rob Herring
						Rob Herring