EDAC: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:44:34 +0000 (11:44 -0600)
committerRob Herring <robh@kernel.org>
Mon, 28 Aug 2023 18:31:01 +0000 (13:31 -0500)
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>
drivers/edac/fsl_ddr_edac.c
drivers/edac/highbank_l2_edac.c
drivers/edac/highbank_mc_edac.c
drivers/edac/mpc85xx_edac.c
drivers/edac/npcm_edac.c
drivers/edac/synopsys_edac.c

index ac2102b2570622f6a28367e67e5f67556e45a6d2..b81757555a8a967a4ce47edd5d5bdbc901a070a2 100644 (file)
@@ -22,8 +22,7 @@
 #include <linux/smp.h>
 #include <linux/gfp.h>
 
-#include <linux/of_platform.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include "edac_module.h"
 #include "fsl_ddr_edac.h"
index c4549cec788b09857735e2a818aee2790eea223c..140d4431bd0d00f8c17a54c436de26139c9d7afc 100644 (file)
@@ -7,8 +7,9 @@
 #include <linux/ctype.h>
 #include <linux/edac.h>
 #include <linux/interrupt.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/platform_device.h>
-#include <linux/of_platform.h>
 
 #include "edac_module.h"
 
index 19fba258ae108876773bd9563ff4f21038e170be..a0c04a7f95e91f89f3f0046d03fd982cfb63fa84 100644 (file)
@@ -7,8 +7,9 @@
 #include <linux/ctype.h>
 #include <linux/edac.h>
 #include <linux/interrupt.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/platform_device.h>
-#include <linux/of_platform.h>
 #include <linux/uaccess.h>
 
 #include "edac_module.h"
index 55320546c17420b86817d1ad61f66aa363635532..2b5703e5066e8017c9f01df7169e6007ec5b1c47 100644 (file)
@@ -22,8 +22,7 @@
 #include <linux/gfp.h>
 #include <linux/fsl/edac.h>
 
-#include <linux/of_platform.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include "edac_module.h"
index 12b95be3e9892a3c5ce0de13f01879833167581f..6d15c1550263fa6f891b35e2bfd3ce01ae27569a 100644 (file)
@@ -3,7 +3,8 @@
 
 #include <linux/debugfs.h>
 #include <linux/iopoll.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include "edac_module.h"
 
index f7d37c28281992b552adfd6893a10d0a4b1a780b..c4fc64cbecd0e6a830047b875ca28c12b3c8da0f 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 
 #include "edac_module.h"