macintosh: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Fri, 14 Jul 2023 17:46:54 +0000 (11:46 -0600)
committerRob Herring <robh@kernel.org>
Mon, 28 Aug 2023 18:36:24 +0000 (13:36 -0500)
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>
drivers/macintosh/ams/ams.h
drivers/macintosh/macio_asic.c
drivers/macintosh/smu.c
drivers/macintosh/therm_adt746x.c
drivers/macintosh/therm_windtunnel.c
drivers/macintosh/windfarm_lm75_sensor.c

index 2c159c8844c198cfcba9ee032b4c717e5deeb37e..e053c15154608264bd671fc5ab8beaf949400a48 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 #include <linux/types.h>
-#include <linux/of_device.h>
 
 enum ams_irq {
        AMS_IRQ_FREEFALL = 0x01,
index 211ed9aa9edcd229da94d70f486f690c9ec03fe5..a5ee8f736a8e006af30d372aa6e6343577206428 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>
+#include <linux/of_platform.h>
 #include <linux/of_irq.h>
 
 #include <asm/machdep.h>
index 5183a00529f565b20d9bd941122524a2dae4c13a..b2b78a53e532245e100f8733505dfbcdb59ae583 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/sched/signal.h>
 
index 53ea56b286f91166b4fb368bcac32075a4a050aa..00693741f7443d3405d9c35dc0d1c072332465f5 100644 (file)
@@ -25,7 +25,9 @@
 #include <linux/kthread.h>
 #include <linux/moduleparam.h>
 #include <linux/freezer.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 
 #include <asm/machdep.h>
 #include <asm/io.h>
index 18a98245432103cfaf93a6ba5f897ac43e89f437..3c1b29476ce24abd99415c4fd51c86f6eb5279a0 100644 (file)
@@ -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>
index 48dbdb2bda150a36dc1c0d0b0a9d1adc3e02e6d1..b5d9c2e40148ca57231cc06064d3333a6b802179 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/init.h>
 #include <linux/wait.h>
 #include <linux/i2c.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
 #include <asm/machdep.h>
 #include <asm/io.h>
 #include <asm/sections.h>