]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
soc: imx: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:51:33 +0000 (11:51 -0600)
committerShawn Guo <shawnguo@kernel.org>
Wed, 19 Jul 2023 06:45:34 +0000 (14:45 +0800)
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: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpcv2.c
drivers/soc/imx/imx8m-blk-ctrl.c
drivers/soc/imx/imx8mp-blk-ctrl.c
drivers/soc/imx/imx93-blk-ctrl.c
drivers/soc/imx/imx93-pd.c

index 4b3300b090a8aa37805f4117416fe8e1625f6f24..fbd3d92f8cd8f25b7980404dd450b15bfa8bf095 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #include <linux/clk.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/pm_runtime.h>
index afbca0d48c14acc092849f332b4c26ca24fbb2e1..cc5ef6e2f0a8cb141ebb538606b49aef03bae0b5 100644 (file)
@@ -8,7 +8,8 @@
 #include <linux/device.h>
 #include <linux/interconnect.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/pm_runtime.h>
index 870aecc0202aebd88c9af6d62a4cb94aa8f57401..5a9f5ece43d9bd98fa15f0f8fc6b167a2322901b 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/device.h>
 #include <linux/interconnect.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/pm_runtime.h>
index 14eb991a670ed78f1f7e9ef1a5830b740b7763f1..40bd90f8b977b65894d7ddd4cd3bbd065ea3280f 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/clk.h>
 #include <linux/device.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/pm_runtime.h>
index 832deeed8fd676a3dec5a16c79c54e42ba46ece4..b9e60d136875ae3a8e13b9d9edea5c3e3e3f814b 100644 (file)
@@ -5,8 +5,8 @@
 
 #include <linux/clk.h>
 #include <linux/delay.h>
-#include <linux/of_device.h>
 #include <linux/iopoll.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>