soc: qcom: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:51:41 +0000 (11:51 -0600)
committerBjorn Andersson <andersson@kernel.org>
Fri, 14 Jul 2023 21:05:06 +0000 (14:05 -0700)
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>
Link: https://lore.kernel.org/r/20230714175142.4067795-1-robh@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/cpr.c
drivers/soc/qcom/icc-bwmon.c
drivers/soc/qcom/ice.c
drivers/soc/qcom/llcc-qcom.c
drivers/soc/qcom/ocmem.c
drivers/soc/qcom/pmic_glink.c
drivers/soc/qcom/pmic_glink_altmode.c
drivers/soc/qcom/rpmhpd.c
drivers/soc/qcom/rpmpd.c
drivers/soc/qcom/spm.c
drivers/soc/qcom/wcnss_ctrl.c

index 144ea68e0920a31da9476293a2075ab30ac75e36..94a3f09772125be713dd0ad1440897c321efc60f 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/bitops.h>
 #include <linux/slab.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_domain.h>
 #include <linux/pm_opp.h>
index 8daf0eb032796d64133058320d3a04274980a123..adf2d523f103c48c5e2a098920c0f54a75deb2b6 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/pm_opp.h>
 #include <linux/regmap.h>
index a6123ea96272347e79692f31284ec8dc580d63c2..fbab7fe5c652b93e431acdfc0faa73fb1a56f059 100644 (file)
@@ -11,7 +11,9 @@
 #include <linux/clk.h>
 #include <linux/delay.h>
 #include <linux/iopoll.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 
 #include <linux/firmware/qcom/qcom_scm.h>
 
index 67c19ed2219a6d35d0c6927c8b65c81c9c961f92..e32a4161a8d025e5a6004330520de29ce73e65bb 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/regmap.h>
 #include <linux/sizes.h>
 #include <linux/slab.h>
index 2064e951230174942e5131a603765c4bed210652..6edc18b211aa1afd9d1b05ae01d9b3c4c154cf52 100644 (file)
@@ -14,7 +14,8 @@
 #include <linux/io.h>
 #include <linux/kernel.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/firmware/qcom/qcom_scm.h>
 #include <linux/sizes.h>
index c87056769ebd89498dd97d19691c47b543241325..264e63493bfed888c74bb1b8e6226b95a461183d 100644 (file)
@@ -4,8 +4,8 @@
  * Copyright (c) 2022, Linaro Ltd
  */
 #include <linux/auxiliary_bus.h>
-#include <linux/of_device.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/rpmsg.h>
 #include <linux/slab.h>
index df48fbea4b6862d06d7b09b38f34305ab54d824e..1dedacc52aea23c526751894020c2980e24fa411 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/auxiliary_bus.h>
 #include <linux/bitfield.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/mutex.h>
 #include <linux/property.h>
index 63c35a32065ba4463324a67bcefa9588f1179c28..2cae1d0aef481c5ff321ddb6d0a3be335cb89c4b 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/pm_domain.h>
 #include <linux/slab.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_opp.h>
 #include <soc/qcom/cmd-db.h>
index fa58c04214eefe92b6a8a5d315cc5572de11f1ad..3135dd1dafe06380481086e1239cfcbce520cfa9 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/mutex.h>
 #include <linux/pm_domain.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_opp.h>
 #include <linux/soc/qcom/smd-rpm.h>
index bab4897267b9e7604c4dfce586e3d11a6abe1a24..2f0b1bfe7658876b1337124415085d364a8fac0f 100644 (file)
@@ -12,8 +12,6 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>
 #include <soc/qcom/spm.h>
index 2a06d631e415a32b0957cb15b04af837e0b279f0..ad9942412c589c78da652643558aa6f5ff2930ec 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/io.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/rpmsg.h>