clk: qcom: Replace of_device.h with explicit includes
authorRob Herring <robh@kernel.org>
Tue, 10 Oct 2023 20:57:10 +0000 (15:57 -0500)
committerBjorn Andersson <andersson@kernel.org>
Sat, 21 Oct 2023 15:41:50 +0000 (08:41 -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 and pull in various other headers. In
preparation to fix this, adjust the includes for what is actually needed.

of_device.h isn't needed, but mod_devicetable.h and platform_device.h were
implicitly included by it.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231010205710.1585232-1-robh@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/camcc-sm8550.c
drivers/clk/qcom/gcc-ipq5018.c
drivers/clk/qcom/gcc-sm4450.c

index 2133e768b8912c337d602bdadc576cd89d13ebb1..dd51ba4ea757be676b4f7b6a68c0b4981ba7a99f 100644 (file)
@@ -4,8 +4,9 @@
  */
 
 #include <linux/clk-provider.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/regmap.h>
 
index 19dc2b71cacf0062efd9370588589f7791021144..70f6ade3ac2a725d3cf97aad9fac3cc296f2d761 100644 (file)
@@ -3,8 +3,9 @@
  * Copyright (c) 2023, The Linux Foundation. All rights reserved.
  */
 #include <linux/clk-provider.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/regmap.h>
 
 #include <dt-bindings/clock/qcom,gcc-ipq5018.h>
index 41c6357d09bc294e7917d953b54e50a46348d9ac..31abe2775fc8391fd577db68d3699981e0b7a112 100644 (file)
@@ -4,8 +4,9 @@
  */
 
 #include <linux/clk-provider.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/platform_device.h>
 #include <linux/regmap.h>
 
 #include <dt-bindings/clock/qcom,sm4450-gcc.h>