summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-10-09 22:45:08 +0300
committerRob Herring <robh@kernel.org>2024-01-19 17:08:53 +0300
commited7dafcc5364d5ff1ac85d7b18bf9a00ff28b6f8 (patch)
tree0fead0a24603b36136699bcd7bd3c27c2e4cec35 /drivers
parent5e6c3454b40594c6f1d398254e7b4005494f9638 (diff)
downloadlinux-ed7dafcc5364d5ff1ac85d7b18bf9a00ff28b6f8.tar.xz
thermal: loongson2: Replace of_device.h with explicit 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. of_device.h isn't needed, but mod_devicetable.h and property.h were implicitly included. Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/loongson2_thermal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thermal/loongson2_thermal.c b/drivers/thermal/loongson2_thermal.c
index 99ca0c7bc41c..0f475fe46bc9 100644
--- a/drivers/thermal/loongson2_thermal.c
+++ b/drivers/thermal/loongson2_thermal.c
@@ -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"