Skip to content

Commit

Permalink
powerpc: mpc8xx: make get_immr() independent of CONFIG_8xx
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chleroy authored and trini committed Apr 6, 2018
1 parent fdef389 commit 1411990
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/include/asm/ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@

#include <asm/processor.h>

#if defined(CONFIG_8xx)
static inline uint get_immr(uint mask)
{
uint immr = mfspr(SPRN_IMMR);

return mask ? (immr & mask) : immr;
}
#endif

static inline uint get_pvr(void)
{
return mfspr(PVR);
Expand Down

0 comments on commit 1411990

Please sign in to comment.