summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/sprd-iommu.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-14 11:46:39 -0600
committerJoerg Roedel <jroedel@suse.de>2023-08-21 14:17:59 +0200
commitd477f603f37197474437091bf66badddcf76f4c7 (patch)
treebef571dda4348125f1d5cf76141e153999bcad6b /drivers/iommu/sprd-iommu.c
parent6b7867b5b8a6b14c487bf04a693ab424c7a8718d (diff)
downloadlinux-stable-d477f603f37197474437091bf66badddcf76f4c7.tar.gz
linux-stable-d477f603f37197474437091bf66badddcf76f4c7.tar.bz2
linux-stable-d477f603f37197474437091bf66badddcf76f4c7.zip
iommu: 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> Acked-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/20230714174640.4058404-1-robh@kernel.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/sprd-iommu.c')
-rw-r--r--drivers/iommu/sprd-iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/sprd-iommu.c b/drivers/iommu/sprd-iommu.c
index 39e34fdeccda..51144c232474 100644
--- a/drivers/iommu/sprd-iommu.c
+++ b/drivers/iommu/sprd-iommu.c
@@ -14,6 +14,7 @@
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of_platform.h>
+#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/slab.h>