ARM: socfpga: Explicitly include correct DT includes
authorRob Herring <robh@kernel.org>
Mon, 17 Jul 2023 22:54:40 +0000 (16:54 -0600)
committerDinh Nguyen <dinguyen@kernel.org>
Thu, 20 Jul 2023 19:38:38 +0000 (14:38 -0500)
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>
arch/arm/mach-socfpga/l2_cache.c
arch/arm/mach-socfpga/ocram.c
arch/arm/mach-socfpga/pm.c
arch/arm/mach-socfpga/socfpga.c

index 99fb9536159098eaa1db33b73d49b20b82cd0102..86e011eeb44488fc549289e7451a901813238b92 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright Altera Corporation (C) 2016. All rights reserved.
  */
 #include <linux/io.h>
-#include <linux/of_platform.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
 
 #include "core.h"
index b4d397e834a023575b26d764038f38638ed14179..9f1a249debf648c06525762a197124792166e1c4 100644 (file)
@@ -4,10 +4,8 @@
  */
 #include <linux/delay.h>
 #include <linux/io.h>
-#include <linux/genalloc.h>
-#include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_platform.h>
 
 #include "core.h"
 
index 365c0428b21b6be44055cb082f6d97f9a7654e96..ab1c08f971f0a55ca9dc88f7fedb2157c45af6e6 100644 (file)
@@ -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>
index 9e4cb2ffd58023565a76844550864d4fb435d5a6..4332af2d8b86244317c2daf96c84dfefa155516a 100644 (file)
@@ -3,13 +3,11 @@
  *  Copyright (C) 2012-2015 Altera Corporation
  */
 #include <linux/irqchip.h>
+#include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_irq.h>
-#include <linux/of_platform.h>
 #include <linux/reboot.h>
 #include <linux/reset/socfpga.h>
 
-#include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 #include <asm/cacheflush.h>