powerpc/include: Declare mpc8xx_immr in 8xx_immap.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 8 Aug 2023 06:04:39 +0000 (08:04 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2023 13:54:47 +0000 (23:54 +1000)
Do the same as for cmp2_immr : declare it at the same place
as its type immap_t, that is in 8xx_immap.h instead of fs_pd.h

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/62d490b65899c2f2667ca7045c5f0fad9cbda458.1691474658.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/8xx_immap.h
arch/powerpc/include/asm/fs_pd.h
arch/powerpc/platforms/8xx/adder875.c
arch/powerpc/platforms/8xx/mpc86xads_setup.c
arch/powerpc/platforms/8xx/mpc885ads_setup.c

index bdf0563..f9cac46 100644 (file)
@@ -560,5 +560,7 @@ typedef struct immap {
        cpm8xx_t        im_cpm;         /* Communication processor */
 } immap_t;
 
+extern immap_t __iomem *mpc8xx_immr;
+
 #endif /* __IMMAP_8XX__ */
 #endif /* __KERNEL__ */
index 8def56e..2b2b52b 100644 (file)
@@ -29,8 +29,6 @@
 #ifdef CONFIG_PPC_8xx
 #include <asm/8xx_immap.h>
 
-extern immap_t __iomem *mpc8xx_immr;
-
 #define immr_map(member) (&mpc8xx_immr->member)
 #define immr_map_size(member, size) (&mpc8xx_immr->member)
 #define immr_unmap(addr) do {} while (0)
index 7e83eb6..ae72c57 100644 (file)
@@ -13,7 +13,7 @@
 #include <asm/time.h>
 #include <asm/machdep.h>
 #include <asm/cpm1.h>
-#include <asm/fs_pd.h>
+#include <asm/8xx_immap.h>
 #include <asm/udbg.h>
 
 #include "mpc8xx.h"
index 11b3d11..e4192c0 100644 (file)
@@ -24,7 +24,6 @@
 #include <asm/time.h>
 #include <asm/8xx_immap.h>
 #include <asm/cpm1.h>
-#include <asm/fs_pd.h>
 #include <asm/udbg.h>
 
 #include "mpc86xads.h"
index 2fc7cac..eb4e54b 100644 (file)
@@ -37,7 +37,6 @@
 #include <asm/time.h>
 #include <asm/8xx_immap.h>
 #include <asm/cpm1.h>
-#include <asm/fs_pd.h>
 #include <asm/udbg.h>
 
 #include "mpc885ads.h"