tpm: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 28 Jul 2023 13:48:02 +0000 (07:48 -0600)
committerRob Herring <robh@kernel.org>
Mon, 28 Aug 2023 18:36:24 +0000 (13:36 -0500)
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it was 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: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20230728134803.3223742-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/char/tpm/tpm_ftpm_tee.c
drivers/char/tpm/tpm_tis.c
drivers/char/tpm/tpm_tis_spi_main.c
drivers/char/tpm/tpm_tis_synquacer.c

index 528f35b14fb636f34697b1167b113dba3e3a9a08..76adb108076cfa662130ee15eff3565edfeb1087 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <linux/acpi.h>
 #include <linux/of.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/tee_drv.h>
 #include <linux/tpm.h>
index 7db3593941eaa0bce84ac5b5c217b814e8ae2772..e4030404c64ee546d0fee50e533f1f244daa9ffd 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/acpi.h>
 #include <linux/freezer.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/kernel.h>
 #include <linux/dmi.h>
 #include "tpm.h"
index 1f5207974a17b6ba0a7835c306b0f17ad6bb991f..c6101914629d08ea378d7f196ff0a88aecb6a117 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <linux/spi/spi.h>
 #include <linux/tpm.h>
 
index 49278746b0e2f97a9b8af1331dc0530ab2a95db5..7f9b4bfceb6e1e21f82812175f69b0b2812dc781 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/kernel.h>
 #include "tpm.h"
 #include "tpm_tis_core.h"