summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/setup.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-08-23 00:58:18 +0200
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2023-10-05 17:15:42 +0200
commit3562257b34165bc9553fefbd48a85dc9337c14bb (patch)
tree7f043e3e3d004cdeac9adaec6398e8c0e4f92885 /arch/arm/kernel/setup.c
parentARM: 9321/1: memset: cast the constant byte to unsigned char (diff)
downloadlinux-3562257b34165bc9553fefbd48a85dc9337c14bb.tar.xz
linux-3562257b34165bc9553fefbd48a85dc9337c14bb.zip
ARM: 9322/1: 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: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r--arch/arm/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index c66b560562b3..15eca804239e 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -15,10 +15,10 @@
#include <linux/console.h>
#include <linux/seq_file.h>
#include <linux/screen_info.h>
-#include <linux/of_platform.h>
#include <linux/init.h>
#include <linux/kexec.h>
#include <linux/libfdt.h>
+#include <linux/of.h>
#include <linux/of_fdt.h>
#include <linux/cpu.h>
#include <linux/interrupt.h>