misc: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2023 14:31:01 +0000 (08:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 13:39:04 +0000 (15:39 +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.

Acked-by: Andrew Donnellan <ajd@linux.ibm.com> # cxl
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230718143102.1065481-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/base.c
drivers/misc/fastrpc.c
drivers/misc/lis3lv02d/lis3lv02d.c
drivers/misc/qcom-coincell.c
drivers/misc/sram.c
drivers/misc/vcpu_stall_detector.c
drivers/misc/xilinx_sdfec.c
drivers/misc/xilinx_tmr_inject.c
drivers/misc/xilinx_tmr_manager.c

index cc0caf9192dca1c33112e36154ffac54ceb01e17..b054562c046e2b119a721d2fad1e2ff5ce50b276 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/rcupdate.h>
 #include <asm/errno.h>
 #include <misc/cxl-base.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include "cxl.h"
 
index 9666d28037e1806ce6022840d383ef7e4b429f68..1c7c0532da6f72d86d9205415914ef408be5d864 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/of_address.h>
 #include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/sort.h>
 #include <linux/of_platform.h>
 #include <linux/rpmsg.h>
index 299d316f1bdab51687ca6b122f63845d4728d3b0..49868a45c0ad1a1f3bf7c821e1e52c1a7a597536 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/miscdevice.h>
 #include <linux/pm_runtime.h>
 #include <linux/atomic.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include "lis3lv02d.h"
 
 #define DRIVER_NAME     "lis3lv02d"
index 54d4f6ee88880aec724bcd9d828ae82943c0e60a..3c57f7429147668059c9bdd0519db25ecb4a30f6 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/slab.h>
 #include <linux/of.h>
 #include <linux/regmap.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 
 struct qcom_coincell {
index 61209739dc436137a0a7d7535cf898822f3927c1..e248c0a8882f237f934edec01af96ddf355d3133 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/genalloc.h>
 #include <linux/io.h>
 #include <linux/list_sort.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
index 53b5506080e18ca7283cf57891952cb4c84fa386..6479c962da1acef7a5b816825f43be3a5c2ddb67 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/module.h>
 #include <linux/nmi.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/param.h>
 #include <linux/percpu.h>
 #include <linux/platform_device.h>
index 0877c42fb8e7238acf14431a39b7490eb4a91878..94a0ee19bf20a97fda8df1b2939589a845663c83 100644 (file)
@@ -15,7 +15,8 @@
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/poll.h>
 #include <linux/slab.h>
 #include <linux/clk.h>
index d96f6d7cd1092cc2ba2b6d04a2ba9580fa5d5543..9fc5835bfebc2f7c4feed38805024c0bbadac8ec 100644 (file)
@@ -11,7 +11,8 @@
 
 #include <asm/xilinx_mb_manager.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 #include <linux/fault-inject.h>
 
 /* TMR Inject Register offsets */
index 2e7a5f37a01faf810756a82546c996b51278dcda..03912a90fd9543300a5869105275836bc294015e 100644 (file)
@@ -15,7 +15,8 @@
 
 #include <asm/xilinx_mb_manager.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 
 /* TMR Manager Register offsets */
 #define XTMR_MANAGER_CR_OFFSET         0x0