summaryrefslogtreecommitdiff
path: root/drivers/edac/mpc85xx_edac.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:44:34 -0600
committerRob Herring <robh@kernel.org>2023-08-28 13:31:01 -0500
commit408d80889305c9c50ae5d88f9e705d56fc867d13 (patch)
tree50f3aa6c1bf773586e26d0b07301dccb043f5e92 /drivers/edac/mpc85xx_edac.c
parent6303d0693f7d6c44bb6eb0b29c906ee28156dd28 (diff)
downloadlwn-408d80889305c9c50ae5d88f9e705d56fc867d13.tar.gz
lwn-408d80889305c9c50ae5d88f9e705d56fc867d13.zip
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>
Diffstat (limited to 'drivers/edac/mpc85xx_edac.c')
-rw-r--r--drivers/edac/mpc85xx_edac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
index 55320546c174..2b5703e5066e 100644
--- a/drivers/edac/mpc85xx_edac.c
+++ b/drivers/edac/mpc85xx_edac.c
@@ -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"