PM / devfreq: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:44:25 +0000 (11:44 -0600)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 23 Jul 2023 20:19:26 +0000 (05:19 +0900)
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: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/imx-bus.c
drivers/devfreq/imx8m-ddrc.c
drivers/devfreq/mtk-cci-devfreq.c
drivers/devfreq/tegra30-devfreq.c

index a727067980fb2ff1c8feba8454ad5bd41fecf82a..86850b7dea0912c98445d1f457fb6d13a9f43468 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/devfreq.h>
 #include <linux/device.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/pm_opp.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
index 16636973eb104f2293c3e9b1c69fb3f5b63b484b..e1348490c8aa1973db83ae7529925c32e238e124 100644 (file)
@@ -3,9 +3,9 @@
  * Copyright 2019 NXP
  */
 
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/device.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/devfreq.h>
 #include <linux/pm_opp.h>
index 6354622eda65a715b8a3d2ee9110e231cc307790..83a73f0ccd803b1efec40ba2722dbed0b21d5fab 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/minmax.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/pm_opp.h>
 #include <linux/regulator/consumer.h>
index 503376b894b60b317670539b876dced7374892a2..4a4f0106ab9ddcfb106a1860370cbf8a3579322a 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/io.h>
 #include <linux/irq.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/reset.h>