Skip to content

Commit 408d808

Browse files
committed
EDAC: 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 was 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. Link: https://lore.kernel.org/r/20230714174434.4054728-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 6303d06 commit 408d808

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

drivers/edac/fsl_ddr_edac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
#include <linux/smp.h>
2323
#include <linux/gfp.h>
2424

25-
#include <linux/of_platform.h>
26-
#include <linux/of_device.h>
25+
#include <linux/of.h>
2726
#include <linux/of_address.h>
2827
#include "edac_module.h"
2928
#include "fsl_ddr_edac.h"

drivers/edac/highbank_l2_edac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
#include <linux/ctype.h>
88
#include <linux/edac.h>
99
#include <linux/interrupt.h>
10+
#include <linux/of.h>
11+
#include <linux/of_device.h>
1012
#include <linux/platform_device.h>
11-
#include <linux/of_platform.h>
1213

1314
#include "edac_module.h"
1415

drivers/edac/highbank_mc_edac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
#include <linux/ctype.h>
88
#include <linux/edac.h>
99
#include <linux/interrupt.h>
10+
#include <linux/of.h>
11+
#include <linux/of_device.h>
1012
#include <linux/platform_device.h>
11-
#include <linux/of_platform.h>
1213
#include <linux/uaccess.h>
1314

1415
#include "edac_module.h"

drivers/edac/mpc85xx_edac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
#include <linux/gfp.h>
2323
#include <linux/fsl/edac.h>
2424

25-
#include <linux/of_platform.h>
26-
#include <linux/of_device.h>
25+
#include <linux/of.h>
2726
#include <linux/of_address.h>
2827
#include <linux/of_irq.h>
2928
#include "edac_module.h"

drivers/edac/npcm_edac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
#include <linux/debugfs.h>
55
#include <linux/iopoll.h>
6-
#include <linux/of_device.h>
6+
#include <linux/of.h>
7+
#include <linux/platform_device.h>
78
#include <linux/regmap.h>
89
#include "edac_module.h"
910

drivers/edac/synopsys_edac.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <linux/platform_device.h>
1212
#include <linux/interrupt.h>
1313
#include <linux/of.h>
14-
#include <linux/of_device.h>
1514

1615
#include "edac_module.h"
1716

0 commit comments

Comments
 (0)