]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: 9322/1: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Tue, 22 Aug 2023 22:58:18 +0000 (23:58 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 5 Oct 2023 15:15:42 +0000 (16:15 +0100)
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>
arch/arm/kernel/devtree.c
arch/arm/kernel/setup.c

index 264827281113b02cc66b03e4a6a752607eb95ef6..fdb74e64206a8ae790826747ba9ac02908de9648 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/of.h>
 #include <linux/of_fdt.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
 #include <linux/smp.h>
 
 #include <asm/cputype.h>
index c66b560562b301b0705163dfd201ee1e2cfbaa4c..15eca804239edc8d46ead8f21e77990352f5d3d3 100644 (file)
 #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>