Skip to content

Commit bff482a

Browse files
robherringandersson
authored andcommitted
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. Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 76ca22b commit bff482a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

drivers/clk/qcom/camcc-sm8550.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
*/
55

66
#include <linux/clk-provider.h>
7+
#include <linux/mod_devicetable.h>
78
#include <linux/module.h>
8-
#include <linux/of_device.h>
9+
#include <linux/platform_device.h>
910
#include <linux/pm_runtime.h>
1011
#include <linux/regmap.h>
1112

drivers/clk/qcom/gcc-ipq5018.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Copyright (c) 2023, The Linux Foundation. All rights reserved.
44
*/
55
#include <linux/clk-provider.h>
6+
#include <linux/mod_devicetable.h>
67
#include <linux/module.h>
7-
#include <linux/of_device.h>
8+
#include <linux/platform_device.h>
89
#include <linux/regmap.h>
910

1011
#include <dt-bindings/clock/qcom,gcc-ipq5018.h>

drivers/clk/qcom/gcc-sm4450.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
*/
55

66
#include <linux/clk-provider.h>
7+
#include <linux/mod_devicetable.h>
78
#include <linux/module.h>
8-
#include <linux/of_device.h>
9+
#include <linux/platform_device.h>
910
#include <linux/regmap.h>
1011

1112
#include <dt-bindings/clock/qcom,sm4450-gcc.h>

0 commit comments

Comments
 (0)