Browse Source

powerpc: mpc8xx: make get_immr() independent of CONFIG_8xx

SPRN_IMMR is defined regardless of the CPU. Therefore, there
is no point in enclosing get_immr() inside a #ifdef CONFIG_8xx

As it a static inline function, it will in any case only be
compiled in functons using it.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Christophe Leroy 7 years ago
parent
commit
14119901fd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      arch/powerpc/include/asm/ppc.h

+ 1 - 2
arch/powerpc/include/asm/ppc.h

@@ -40,14 +40,13 @@
 
 
 #include <asm/processor.h>
 #include <asm/processor.h>
 
 
-#if defined(CONFIG_8xx)
 static inline uint get_immr(uint mask)
 static inline uint get_immr(uint mask)
 {
 {
 	uint immr = mfspr(SPRN_IMMR);
 	uint immr = mfspr(SPRN_IMMR);
 
 
 	return mask ? (immr & mask) : immr;
 	return mask ? (immr & mask) : immr;
 }
 }
-#endif
+
 static inline uint get_pvr(void)
 static inline uint get_pvr(void)
 {
 {
 	return mfspr(PVR);
 	return mfspr(PVR);