]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc: Remove asm/prom.h from asm/mpc52xx.h and asm/pci.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 8 Jul 2022 07:11:07 +0000 (09:11 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Jul 2022 06:22:12 +0000 (16:22 +1000)
asm/pci.h and asm/mpc52xx.h don't need asm/prom.h

Declare struct device_node locally to avoid including of.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Add missing include of prom.h to of_rtc.c]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cf5243343e2364c2b40f22ee5ad9a6e2453d1121.1657264228.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/mpc52xx.h
arch/powerpc/include/asm/pci.h
arch/powerpc/kernel/prom.c
arch/powerpc/sysdev/of_rtc.c

index ddd80aae1e3218db2953006198aafe8daf78165d..5ea16a71c2f0501fcbc780eff43c70de7e025acb 100644 (file)
@@ -15,7 +15,6 @@
 
 #ifndef __ASSEMBLY__
 #include <asm/types.h>
-#include <asm/prom.h>
 #include <asm/mpc5xxx.h>
 #endif /* __ASSEMBLY__ */
 
@@ -268,6 +267,8 @@ struct mpc52xx_intr {
 
 #ifndef __ASSEMBLY__
 
+struct device_node;
+
 /* mpc52xx_common.c */
 extern void mpc5200_setup_xlb_arbiter(void);
 extern void mpc52xx_declare_of_platform_devices(void);
index 915d6ee4b40ac60b2a736fe06f8394595b036566..0f182074cdb75131539e695bc3ea03885897586e 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <asm/machdep.h>
 #include <asm/io.h>
-#include <asm/prom.h>
 #include <asm/pci-bridge.h>
 
 /* Return values for pci_controller_ops.probe_mode function */
index 1066b072db3586a2d9939f03a1e0855c37b50407..0a68c99da57333ba3a733af2ccd444ff76f27ce8 100644 (file)
@@ -54,6 +54,7 @@
 #include <asm/dt_cpu_ftrs.h>
 #include <asm/drmem.h>
 #include <asm/ultravisor.h>
+#include <asm/prom.h>
 
 #include <mm/mmu_decl.h>
 
index 1f408d34a6a7f922049efb37ad9cc972dd484978..420f949b748516d0440891a1b0105822275928c7 100644 (file)
@@ -11,6 +11,8 @@
 #include <linux/of_platform.h>
 #include <linux/slab.h>
 
+#include <asm/prom.h>
+
 static __initdata struct {
        const char *compatible;
        char *plat_name;