Skip to content

Commit 9027f2e

Browse files
robherringchanwoochoi
authored andcommitted
PM / devfreq: 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> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent fdf0eaf commit 9027f2e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

drivers/devfreq/imx-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/devfreq.h>
88
#include <linux/device.h>
99
#include <linux/module.h>
10-
#include <linux/of_device.h>
10+
#include <linux/of.h>
1111
#include <linux/pm_opp.h>
1212
#include <linux/platform_device.h>
1313
#include <linux/slab.h>

drivers/devfreq/imx8m-ddrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* Copyright 2019 NXP
44
*/
55

6+
#include <linux/mod_devicetable.h>
67
#include <linux/module.h>
78
#include <linux/device.h>
8-
#include <linux/of_device.h>
99
#include <linux/platform_device.h>
1010
#include <linux/devfreq.h>
1111
#include <linux/pm_opp.h>

drivers/devfreq/mtk-cci-devfreq.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <linux/minmax.h>
99
#include <linux/module.h>
1010
#include <linux/of.h>
11-
#include <linux/of_device.h>
1211
#include <linux/platform_device.h>
1312
#include <linux/pm_opp.h>
1413
#include <linux/regulator/consumer.h>

drivers/devfreq/tegra30-devfreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <linux/io.h>
1414
#include <linux/irq.h>
1515
#include <linux/module.h>
16-
#include <linux/of_device.h>
16+
#include <linux/of.h>
1717
#include <linux/platform_device.h>
1818
#include <linux/pm_opp.h>
1919
#include <linux/reset.h>

0 commit comments

Comments
 (0)