summaryrefslogtreecommitdiff
path: root/drivers/soc/apple
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-10-30 09:26:21 -0500
committerHector Martin <marcan@marcan.st>2023-11-23 19:10:47 +0900
commit4dae8c047a70307d83d912afbda2e2c94de155b6 (patch)
treee661b5ab0b1ec5d8d266b703d8f00874d6e04e37 /drivers/soc/apple
parentc84292d9d253706267889cf2614400712f15d689 (diff)
downloadlwn-4dae8c047a70307d83d912afbda2e2c94de155b6.tar.gz
lwn-4dae8c047a70307d83d912afbda2e2c94de155b6.zip
soc: apple: mailbox: Add explicit include of platform_device.h
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>
Diffstat (limited to 'drivers/soc/apple')
-rw-r--r--drivers/soc/apple/mailbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/apple/mailbox.c b/drivers/soc/apple/mailbox.c
index 0cbd172f435e..780199bf351e 100644
--- a/drivers/soc/apple/mailbox.c
+++ b/drivers/soc/apple/mailbox.c
@@ -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>