soc: apple: mailbox: Add explicit include of platform_device.h
authorRob Herring <robh@kernel.org>
Mon, 30 Oct 2023 14:26:21 +0000 (09:26 -0500)
committerHector Martin <marcan@marcan.st>
Thu, 23 Nov 2023 10:10:47 +0000 (19:10 +0900)
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.

platform_device.h is implicitly included by of_platform.h, but that's going
to be removed.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/soc/apple/mailbox.c

index 0cbd172f435ed9b4e6390e0161d5956e85a3cdd5..780199bf351efbfb24422880ef39510c77def68f 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/spinlock.h>
 #include <linux/types.h>