bus: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Thu, 3 Aug 2023 22:42:56 +0000 (16:42 -0600)
committerArnd Bergmann <arnd@arndb.de>
Sat, 12 Aug 2023 08:31:01 +0000 (10:31 +0200)
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>
Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20230803-dt-header-cleanups-for-soc-v2-16-d8de2cc88bff@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/fsl-mc/fsl-mc-bus.c
drivers/bus/fsl-mc/fsl-mc-msi.c
drivers/bus/hisi_lpc.c
drivers/bus/omap_l3_smx.c
drivers/bus/simple-pm-bus.c
drivers/bus/sunxi-rsb.c
drivers/bus/ti-pwmss.c

index 4352745a923ceaf7d25ed699c3cfc5f5df2b9344..7c57e7d2ff5556c683de0e1bebad1ece59a26d4a 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/of_device.h>
 #include <linux/of_address.h>
 #include <linux/ioport.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/limits.h>
 #include <linux/bitops.h>
index f3f8af9426c9fa237f970044405fcff454f25a78..82cd69f7884c6c4f88be417ebe3aed567beedd37 100644 (file)
@@ -7,8 +7,6 @@
  *
  */
 
-#include <linux/of_device.h>
-#include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/irq.h>
 #include <linux/irqdomain.h>
index 5b65a48f17e7cec90823b682ca2313dafbd917c7..cdc4e38c113ef60c1570a11612656bf43dcda59b 100644 (file)
@@ -13,9 +13,9 @@
 #include <linux/logic_pio.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
 #include <linux/of_platform.h>
 #include <linux/pci.h>
+#include <linux/platform_device.h>
 #include <linux/serial_8250.h>
 #include <linux/slab.h>
 
index bb1606f5ce2d77d817894d96f1fc11c07203acd6..9ba18c39c6711b222a633d6d3e17e6d9184ff99a 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 
 #include "omap_l3_smx.h"
 
index 4da77ca7b75aa47d1f766177cb835590081dd353..aafcc481de91deff63daaf8b55b6c8dd415ad786 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <linux/clk.h>
 #include <linux/module.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
index 696c0aefb0ca98024842216759f761ae938d057f..cae64cf5a3879567890d90e1e14ce6ab22909e4d 100644 (file)
@@ -39,7 +39,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_irq.h>
-#include <linux/of_platform.h>
+#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm.h>
 #include <linux/pm_runtime.h>
index e9c26c94251b8de485519921ea2dfc6826818749..480a4de76cd4b07628821e3ff04d0cccc10eb578 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/pm_runtime.h>
-#include <linux/of_device.h>
+#include <linux/of_platform.h>
 
 static const struct of_device_id pwmss_of_match[] = {
        { .compatible   = "ti,am33xx-pwmss" },