clk: qcom: Replace of_device.h with explicit includes
Subsystems (3)
PATCH 1/1 clk: qcom: 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 and pull in various other headers. In preparation to fix this, adjust the includes for what is actually needed.
of_device.h isn't needed, but mod_devicetable.h and platform_device.h were implicitly included by it.
---
Note these were added in the merge window and missed the last round.
--- drivers/clk/qcom/camcc-sm8550.c | 3 ++- drivers/clk/qcom/gcc-ipq5018.c | 3 ++- drivers/clk/qcom/gcc-sm4450.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-)
drivers/clk/qcom/camcc-sm8550.c +2 -1
@@ -4,8 +4,9 @@*/ #include <linux/clk-provider.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/regmap.h>
drivers/clk/qcom/gcc-ipq5018.c +2 -1
@@ -3,8 +3,9 @@* Copyright (c) 2023, The Linux Foundation. All rights reserved. */ #include <linux/clk-provider.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <dt-bindings/clock/qcom,gcc-ipq5018.h>
drivers/clk/qcom/gcc-sm4450.c +2 -1
@@ -4,8 +4,9 @@*/ #include <linux/clk-provider.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of_device.h> +#include <linux/platform_device.h> #include <linux/regmap.h> #include <dt-bindings/clock/qcom,sm4450-gcc.h>
Signature · 1 line
2.42.0
Quoted 10 lines · Rob Herring
The DT
of_device.handof_platform.hdate back to the separateof_platform_bus_typebefore 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 and pull in various other headers. In preparation to fix this, adjust the includes for what is actually needed.
of_device.hisn't needed, butmod_devicetable.handplatform_device.hwere implicitly included by it.[...]
Applied, thanks!
[1/1] clk: qcom: Replace of_device.h with explicit includes
commit: bff482ace43eebc5b4394cc9a7c7723f08413f80
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>