reset: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:49:37 +0000 (11:49 -0600)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 28 Jul 2023 15:36:20 +0000 (17:36 +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>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Acked-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link: https://lore.kernel.org/r/20230714174939.4063667-1-robh@kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
15 files changed:
drivers/reset/hisilicon/hi6220_reset.c
drivers/reset/hisilicon/reset-hi3660.c
drivers/reset/reset-imx7.c
drivers/reset/reset-intel-gw.c
drivers/reset/reset-k210.c
drivers/reset/reset-meson-audio-arb.c
drivers/reset/reset-meson.c
drivers/reset/reset-microchip-sparx5.c
drivers/reset/reset-mpfs.c
drivers/reset/reset-qcom-aoss.c
drivers/reset/reset-qcom-pdc.c
drivers/reset/reset-simple.c
drivers/reset/reset-uniphier-glue.c
drivers/reset/reset-uniphier.c
drivers/reset/reset-zynqmp.c

index 5ca145b64e63d9104e19c5f81f1bfd59247207eb..8d1fce18ded78c732dcb3a0eca200f1cc7010067 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/regmap.h>
 #include <linux/mfd/syscon.h>
 #include <linux/reset-controller.h>
index 965f5ceba7d8f4da82b41753f786c4d9df206917..087f28e326ee300d02a40a8473dac7912f11eebf 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/kernel.h>
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/reset-controller.h>
index d2408725eb2c3c1376d125ae69650206e5978456..dd01fe11c5cb38572079750cda968270cf25780e 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/regmap.h>
index effc177db80afcbd4b2e9eb4ade11c64ade8c28a..a5a01388ae7fae28654736e8219ff4e80c9508a6 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/bitfield.h>
 #include <linux/init.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reboot.h>
 #include <linux/regmap.h>
index 1b6e03522b40d2b00af35b0cf4e535ed5e3ee66c..b62a2fd44e4e42fe54a34b56688f1ea908eb8dd7 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2020 Western Digital Corporation or its affiliates.
  */
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/delay.h>
index 6a3f6a6a3bbf55bfc9381601694843c760fb4fe7..7e46dbc04998f456949865af97783938c7d92c23 100644 (file)
@@ -5,7 +5,8 @@
 #include <linux/clk.h>
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/spinlock.h>
 
index 13878ca2779d22fde65c85c79c929ec2c376327f..89ac99789a3ca8e4ee26ae262c04c020e1ce55d7 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/reset-controller.h>
 #include <linux/slab.h>
 #include <linux/types.h>
-#include <linux/of_device.h>
 
 #define BITS_PER_REG   32
 
index ead25942061d2c320f12e54fc1785e9d52463097..636e85c388b039adc3246e4bdf8b55e582b492d9 100644 (file)
@@ -7,9 +7,10 @@
  * https://github.com/microchip-ung/sparx-5_reginfo
  */
 #include <linux/mfd/syscon.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/reset-controller.h>
 
index e71ab73092abdee67bf46b784f476a5843f9cdc6..7f3fb2d472f412bfd2c2242ede49f3152aac1e0c 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/auxiliary_bus.h>
 #include <linux/delay.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <dt-bindings/clock/microchip,mpfs-clock.h>
index 9333b923dda00e6926038f7e2989062b6c8afd68..f52e90e36194435f0d50225fbadb369aed4c7b9e 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/reset-controller.h>
 #include <linux/delay.h>
 #include <linux/io.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <dt-bindings/reset/qcom,sdm845-aoss.h>
 
 struct qcom_aoss_reset_map {
index f22bb49a4ac874e4be01a0d97ec6e071c8e50bee..a3aae3f902e6f6816fb96e233e00ec36fb733617 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/reset-controller.h>
index 361a68314265adbd8f954814815706d954659b47..7ea5adbf20971b71b1a5ef46cb09d125ca45e9c1 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/reset/reset-simple.h>
index 15abac9fc72c074adaeec0a8f98ce73d1355d26a..38aa953855aae4e3d13e5fa36809af0faa7706d4 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/clk.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/reset.h>
 #include <linux/reset/reset-simple.h>
index ff7580f38056a242b853de95b8533a3b515bf9ee..79c43c204d46f2a5b6b115d56596ce37aad7aea7 100644 (file)
@@ -7,7 +7,6 @@
 #include <linux/mfd/syscon.h>
 #include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/reset-controller.h>
index 59dc0ff9af9e850a22ee681324586d98f4a6b580..f0f64ad3472b38819930aa18e0ed5782923b1fbc 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/platform_device.h>
 #include <linux/reset-controller.h>
 #include <linux/firmware/xlnx-zynqmp.h>
-#include <linux/of_device.h>
 
 #define ZYNQMP_NR_RESETS (ZYNQMP_PM_RESET_END - ZYNQMP_PM_RESET_START)
 #define ZYNQMP_RESET_ID ZYNQMP_PM_RESET_START