]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
thermal: loongson2: Replace of_device.h with explicit includes
authorRob Herring <robh@kernel.org>
Mon, 9 Oct 2023 19:45:08 +0000 (14:45 -0500)
committerRob Herring <robh@kernel.org>
Fri, 19 Jan 2024 14:08:53 +0000 (08:08 -0600)
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.

of_device.h isn't needed, but mod_devicetable.h and property.h were
implicitly included.

Signed-off-by: Rob Herring <robh@kernel.org>
drivers/thermal/loongson2_thermal.c

index 99ca0c7bc41c790a50cd9b5e7f10344189f0eae6..0f475fe46bc9dc4db106abb4b2a52fe5286b78e9 100644 (file)
@@ -8,9 +8,10 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/minmax.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 #include <linux/thermal.h>
 #include <linux/units.h>
 #include "thermal_hwmon.h"