diff options
author | Linus Torvalds | 2024-01-19 13:00:45 -0800 |
---|---|---|
committer | Linus Torvalds | 2024-01-19 13:00:45 -0800 |
commit | 9bc44c51a0461e099d4eb5dff86c2d72f0fb4a6c (patch) | |
tree | 3379df41c7fa335ce1a48b4af2276f122253b4e3 /include | |
parent | a638bfbfa1f8e8fbf36d84679916c60c1382a2ef (diff) | |
parent | ef175b29a242fea98f467f008237484b03c94834 (diff) |
Merge tag 'devicetree-for-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull devicetree header detangling from Rob Herring:
"Remove the circular including of of_device.h and of_platform.h along
with all of their implicit includes.
This is the culmination of several kernel cycles worth of fixing
implicit DT includes throughout the tree"
* tag 'devicetree-for-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
of: Stop circularly including of_device.h and of_platform.h
clk: qcom: gcc-x1e80100: Replace of_device.h with explicit includes
thermal: loongson2: Replace of_device.h with explicit includes
net: can: Use device_get_match_data()
sparc: Use device_get_match_data()
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/of_device.h | 5 | ||||
-rw-r--r-- | include/linux/of_platform.h | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index a72661e47faa..9042bca5bb84 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -2,10 +2,7 @@ #ifndef _LINUX_OF_DEVICE_H #define _LINUX_OF_DEVICE_H -#include <linux/platform_device.h> -#include <linux/of_platform.h> /* temporary until merge */ - -#include <linux/of.h> +#include <linux/device/driver.h> struct device; struct of_device_id; diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index fadfea575485..a2ff1ad48f7f 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h @@ -7,11 +7,11 @@ */ #include <linux/mod_devicetable.h> -#include <linux/of_device.h> -#include <linux/platform_device.h> struct device; +struct device_node; struct of_device_id; +struct platform_device; /** * struct of_dev_auxdata - lookup table entry for device names & platform_data |