aboutsummaryrefslogtreecommitdiff
path: root/drivers/mailbox/mtk-adsp-mailbox.c
diff options
context:
space:
mode:
authorGravatar Rob Herring <robh@kernel.org> 2023-07-14 11:47:01 -0600
committerGravatar Jassi Brar <jaswinder.singh@linaro.org> 2023-09-05 10:10:58 -0500
commite9803aac5097ac74186b074d3176318fd10ec98c (patch)
tree0d9fd1e7db0020a94a12841c3c7a612dc2a60201 /drivers/mailbox/mtk-adsp-mailbox.c
parentmailbox: ti-msgmgr: Use devm_platform_ioremap_resource_byname() (diff)
downloadlinux-e9803aac5097ac74186b074d3176318fd10ec98c.tar.gz
linux-e9803aac5097ac74186b074d3176318fd10ec98c.tar.bz2
linux-e9803aac5097ac74186b074d3176318fd10ec98c.zip
mailbox: 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 as 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. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox/mtk-adsp-mailbox.c')
-rw-r--r--drivers/mailbox/mtk-adsp-mailbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mailbox/mtk-adsp-mailbox.c b/drivers/mailbox/mtk-adsp-mailbox.c
index 14bc0057de81..91487aa4d7da 100644
--- a/drivers/mailbox/mtk-adsp-mailbox.c
+++ b/drivers/mailbox/mtk-adsp-mailbox.c
@@ -10,7 +10,8 @@
#include <linux/kernel.h>
#include <linux/mailbox_controller.h>
#include <linux/module.h>
-#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
#include <linux/slab.h>
struct mtk_adsp_mbox_priv {