aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-03-16 17:20:39 +0100
committerTom Rini <trini@konsulko.com>2018-04-06 16:30:37 -0400
commit0ebb5388b4aff65934730cc187826919c8f33a25 (patch)
treebefc80397a2018c44a45f9936aa3a62e9667d95f /arch/powerpc/include
parent14119901fd4a2577f93413a665cc79705f7675fd (diff)
downloadu-boot-midas-0ebb5388b4aff65934730cc187826919c8f33a25.tar.gz
u-boot-midas-0ebb5388b4aff65934730cc187826919c8f33a25.tar.bz2
u-boot-midas-0ebb5388b4aff65934730cc187826919c8f33a25.zip
powerpc: mpc8xx: remove get_immr() argument
get_immr() is always called with 0 as an argument, so it is useless. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/ppc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/ppc.h b/arch/powerpc/include/asm/ppc.h
index 6ba10974b6..c3f73ef885 100644
--- a/arch/powerpc/include/asm/ppc.h
+++ b/arch/powerpc/include/asm/ppc.h
@@ -40,11 +40,9 @@
#include <asm/processor.h>
-static inline uint get_immr(uint mask)
+static inline uint get_immr(void)
{
- uint immr = mfspr(SPRN_IMMR);
-
- return mask ? (immr & mask) : immr;
+ return mfspr(SPRN_IMMR);
}
static inline uint get_pvr(void)