Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rob Herring and committed by
Chanwoo Choi
9027f2e7 fdf0eaf1

+3 -4
+1 -1
drivers/devfreq/imx-bus.c
··· 7 7 #include <linux/devfreq.h> 8 8 #include <linux/device.h> 9 9 #include <linux/module.h> 10 - #include <linux/of_device.h> 10 + #include <linux/of.h> 11 11 #include <linux/pm_opp.h> 12 12 #include <linux/platform_device.h> 13 13 #include <linux/slab.h>
+1 -1
drivers/devfreq/imx8m-ddrc.c
··· 3 3 * Copyright 2019 NXP 4 4 */ 5 5 6 + #include <linux/mod_devicetable.h> 6 7 #include <linux/module.h> 7 8 #include <linux/device.h> 8 - #include <linux/of_device.h> 9 9 #include <linux/platform_device.h> 10 10 #include <linux/devfreq.h> 11 11 #include <linux/pm_opp.h>
-1
drivers/devfreq/mtk-cci-devfreq.c
··· 8 8 #include <linux/minmax.h> 9 9 #include <linux/module.h> 10 10 #include <linux/of.h> 11 - #include <linux/of_device.h> 12 11 #include <linux/platform_device.h> 13 12 #include <linux/pm_opp.h> 14 13 #include <linux/regulator/consumer.h>
+1 -1
drivers/devfreq/tegra30-devfreq.c
··· 13 13 #include <linux/io.h> 14 14 #include <linux/irq.h> 15 15 #include <linux/module.h> 16 - #include <linux/of_device.h> 16 + #include <linux/of.h> 17 17 #include <linux/platform_device.h> 18 18 #include <linux/pm_opp.h> 19 19 #include <linux/reset.h>