]> git.dujemihanovic.xyz Git - linux.git/commitdiff
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 bdf0563ba423886a5cde9ff2a63a47e8a3365604..f9cac46a95cb30ff15ab104ebe659c959f5e5bc7 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 8def56ec05c6075afd8567c6c5117c5c2d334288..2b2b52b7451dcda1a76719463075efe82bd59525 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 7e83eb6746f4acdb39eb736424994fab005acfbc..ae72c574eb7e09bb2ddb106d244b01ea1f38bacc 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 11b3d1116db146532204b4698c439e0d83da7a6a..e4192c0a3c0c733a5ccbe63e08c8c6661631f940 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 2fc7cacbcd96821cc471ba82f5f9e5dcad15fd8e..eb4e54ba417f4e59f6f0686cb8dea3097fb747f2 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"