hwtracing: coresight: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2023 14:31:24 +0000 (08:31 -0600)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Jul 2023 15:46:24 +0000 (16:46 +0100)
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: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230718143124.1065949-1-robh@kernel.org
drivers/hwtracing/coresight/coresight-core.c
drivers/hwtracing/coresight/coresight-platform.c

index 118fcf27854d5e59561d89d0e4f3ce3286f292ab..9fabe00a40d6a0b4ec031b4037289808061cd306 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/mutex.h>
 #include <linux/clk.h>
 #include <linux/coresight.h>
-#include <linux/of_platform.h>
+#include <linux/property.h>
 #include <linux/delay.h>
 #include <linux/pm_runtime.h>
 
index 3e2e135cb8f6d2c62713b5a484f4fa1ececda097..27ca22c5104f0721cb55f661c7ff8b96b405b19a 100644 (file)
@@ -9,9 +9,7 @@
 #include <linux/slab.h>
 #include <linux/clk.h>
 #include <linux/of.h>
-#include <linux/of_address.h>
 #include <linux/of_graph.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/amba/bus.h>
 #include <linux/coresight.h>