Skip to content

Commit ed7dafc

Browse files
committed
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>
1 parent 5e6c345 commit ed7dafc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/thermal/loongson2_thermal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
#include <linux/interrupt.h>
99
#include <linux/io.h>
1010
#include <linux/minmax.h>
11+
#include <linux/mod_devicetable.h>
1112
#include <linux/module.h>
12-
#include <linux/of_device.h>
1313
#include <linux/platform_device.h>
14+
#include <linux/property.h>
1415
#include <linux/thermal.h>
1516
#include <linux/units.h>
1617
#include "thermal_hwmon.h"

0 commit comments

Comments
 (0)