genpd: Explicitly include correct DT includes
Subsystems (2)
PATCH v2 1/1 genpd: 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 was 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.
---
v2: Previously sent for drivers/soc/. Gathered up files which got moved
to genpd to new patch.
--- drivers/genpd/mediatek/mtk-pm-domains.c | 2 +- drivers/genpd/mediatek/mtk-scpsys.c | 2 +- drivers/genpd/sunxi/sun20i-ppu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/genpd/mediatek/mtk-pm-domains.c +1 -1
@@ -8,8 +8,8 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/mfd/syscon.h> +#include <linux/of.h> #include <linux/of_clk.h> -#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/regmap.h>
drivers/genpd/mediatek/mtk-scpsys.c +1 -1
@@ -7,7 +7,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/mfd/syscon.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/regulator/consumer.h>
drivers/genpd/sunxi/sun20i-ppu.c +1 -1
@@ -5,7 +5,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/reset.h>
Signature · 1 line
2.40.1
Dne sreda, 23. avgust 2023 ob 19:04:37 CEST je Rob Herring napisal(a):
Quoted 9 lines
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it was 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 includeplatform_device.handof.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.
Quoted 8 lines
Signed-off-by Rob Herring <[email protected]>---
v2: Previously sent fordrivers/soc/. Gathered up files which got moved
to genpd to new patch.--- drivers/genpd/mediatek/mtk-pm-domains.c | 2 +- drivers/genpd/mediatek/mtk-scpsys.c | 2 +- drivers/genpd/sunxi/sun20i-ppu.c | 2 +-
for sun20i-ppu:
Best regards,
Jernej
Quoted 11 lines · Rob Herring
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore it was 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 includeplatform_device.handof.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 <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 52 lines
---
v2: Previously sent fordrivers/soc/. Gathered up files which got moved
to genpd to new patch.--- drivers/genpd/mediatek/mtk-pm-domains.c | 2 +- drivers/genpd/mediatek/mtk-scpsys.c | 2 +- drivers/genpd/sunxi/sun20i-ppu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/genpd/mediatek/mtk-pm-domains.c +1
-1@@ -8,8 +8,8 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/mfd/syscon.h> +#include <linux/of.h> #include <linux/of_clk.h> -#include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/regmap.h> drivers/genpd/mediatek/mtk-scpsys.c +1
-1@@ -7,7 +7,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/mfd/syscon.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/regulator/consumer.h> drivers/genpd/sunxi/sun20i-ppu.c +1
-2@@ -5,7 +5,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/pm_domain.h> #include <linux/reset.h> --2.40.1