diff options
author | Rob Herring <robh@kernel.org> | 2023-07-14 11:46:54 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-08-28 13:36:24 -0500 |
commit | 233d687d1b78080ee79f67356327e0e0e50ef6f5 (patch) | |
tree | 7cdcb9f962d796a02fb70d99ed42f76a63a05608 /drivers/macintosh/therm_windtunnel.c | |
parent | 32bc7297d855608fcb13af62a95739a079b4f8e2 (diff) | |
download | lwn-233d687d1b78080ee79f67356327e0e0e50ef6f5.tar.gz lwn-233d687d1b78080ee79f67356327e0e0e50ef6f5.zip |
macintosh: 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.
Link: https://lore.kernel.org/r/20230714174654.4058898-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/macintosh/therm_windtunnel.c')
-rw-r--r-- | drivers/macintosh/therm_windtunnel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index 18a982454321..3c1b29476ce2 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c @@ -36,7 +36,9 @@ #include <linux/i2c.h> #include <linux/init.h> #include <linux/kthread.h> +#include <linux/of.h> #include <linux/of_platform.h> +#include <linux/platform_device.h> #include <asm/machdep.h> #include <asm/io.h> |