Skip to content

Commit fd774e3

Browse files
robherringdavejiang
authored andcommitted
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 <[email protected]> Signed-off-by: Dave Jiang <[email protected]>
1 parent c1dbd8a commit fd774e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvdimm/of_pmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
#define pr_fmt(fmt) "of_pmem: " fmt
44

5-
#include <linux/of_platform.h>
6-
#include <linux/of_address.h>
5+
#include <linux/of.h>
76
#include <linux/libnvdimm.h>
87
#include <linux/module.h>
98
#include <linux/ioport.h>
9+
#include <linux/platform_device.h>
1010
#include <linux/slab.h>
1111

1212
struct of_pmem_private {

0 commit comments

Comments
 (0)