summaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/pm.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-17 16:54:40 -0600
committerDinh Nguyen <dinguyen@kernel.org>2023-07-20 14:38:38 -0500
commit37e2d7d23765c3948e21cb361100f1baeb65f4f3 (patch)
treebefe8726bfaaade8a6a7df7c7b0dcc9c6ec16374 /arch/arm/mach-socfpga/pm.c
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
ARM: socfpga: 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 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. A couple of other includes are unused and can be dropped too. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/arm/mach-socfpga/pm.c')
-rw-r--r--arch/arm/mach-socfpga/pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/pm.c b/arch/arm/mach-socfpga/pm.c
index 365c0428b21b..ab1c08f971f0 100644
--- a/arch/arm/mach-socfpga/pm.c
+++ b/arch/arm/mach-socfpga/pm.c
@@ -13,7 +13,9 @@
#include <linux/genalloc.h>
#include <linux/init.h>
#include <linux/io.h>
+#include <linux/of.h>
#include <linux/of_platform.h>
+#include <linux/platform_device.h>
#include <linux/suspend.h>
#include <asm/suspend.h>
#include <asm/fncpy.h>