aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/perf/fsl_imx8_ddr_perf.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2023-07-14 17:48:31 +0000
committerWill Deacon <[email protected]>2023-07-27 12:02:23 +0000
commit918dc87b746e0114eb64d6e478da7f370e266d5a (patch)
tree34fc93e8cb5dc5eebe42f6363391aeacd900fc61 /drivers/perf/fsl_imx8_ddr_perf.c
parentperf: pmuv3: Add Cortex A520, A715, A720, X3 and X4 PMUs (diff)
downloadkernel-918dc87b746e0114eb64d6e478da7f370e266d5a.tar.gz
kernel-918dc87b746e0114eb64d6e478da7f370e266d5a.zip
drivers/perf: Explicitly include correct DT includes
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/perf/fsl_imx8_ddr_perf.c')
-rw-r--r--drivers/perf/fsl_imx8_ddr_perf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c
index 5222ba1e79d0..1cb3861ab0e0 100644
--- a/drivers/perf/fsl_imx8_ddr_perf.c
+++ b/drivers/perf/fsl_imx8_ddr_perf.c
@@ -10,10 +10,9 @@
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
-#include <linux/of_address.h>
-#include <linux/of_device.h>
#include <linux/of_irq.h>
#include <linux/perf_event.h>
+#include <linux/platform_device.h>
#include <linux/slab.h>
#define COUNTER_CNTL 0x0