diff options
author | 2023-07-14 11:50:07 -0600 | |
---|---|---|
committer | 2023-07-31 20:03:42 +0200 | |
commit | f6a756e8fb12923f0e3996a575e935e94f3594eb (patch) | |
tree | 204852b855ac12d68739142ca3dc69b6fc716b3e /drivers/thermal/thermal_of.c | |
parent | Merge back new thermal control material for v6.6. (diff) | |
download | linux-f6a756e8fb12923f0e3996a575e935e94f3594eb.tar.gz linux-f6a756e8fb12923f0e3996a575e935e94f3594eb.tar.bz2 linux-f6a756e8fb12923f0e3996a575e935e94f3594eb.zip |
thermal: 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 <robh@kernel.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal/thermal_of.c')
-rw-r--r-- | drivers/thermal/thermal_of.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index bc07ae1c284c..330690a3a208 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -10,8 +10,7 @@ #include <linux/err.h> #include <linux/export.h> -#include <linux/of_device.h> -#include <linux/of_platform.h> +#include <linux/of.h> #include <linux/slab.h> #include <linux/thermal.h> #include <linux/types.h> |