]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: mpc8xx: remove get_immr() argument
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 16 Mar 2018 16:20:39 +0000 (17:20 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Apr 2018 20:30:37 +0000 (16:30 -0400)
get_immr() is always called with 0 as an argument, so it is useless.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
arch/powerpc/cpu/mpc8xx/cpu.c
arch/powerpc/cpu/mpc8xx/reginfo.c
arch/powerpc/include/asm/ppc.h

index 5a81bed5a1028c74c9b52e26b927c04debe7da6a..78874926e3356db044bbd6bcace732d810c0311e 100644 (file)
@@ -90,7 +90,7 @@ static int check_CPU(long clock, uint pvr, uint immr)
 int checkcpu(void)
 {
        ulong clock = gd->cpu_clk;
-       uint immr = get_immr(0);        /* Return full IMMR contents */
+       uint immr = get_immr(); /* Return full IMMR contents */
        uint pvr = get_pvr();
 
        puts("CPU:   ");
index 277d2753b2590cdce5da04f543c595a1a3e30729..d48ea265f837e7b7e97f98bbdd847dd3b37e7719 100644 (file)
@@ -22,7 +22,7 @@ void print_reginfo(void)
         */
 
        printf("\nSystem Configuration registers\n"
-               "\tIMMR\t0x%08X\n", get_immr(0));
+               "\tIMMR\t0x%08X\n", get_immr());
 
        printf("\tSIUMCR\t0x%08X", in_be32(&sysconf->sc_siumcr));
        printf("\tSYPCR\t0x%08X\n", in_be32(&sysconf->sc_sypcr));
index 6ba10974b6d2d86b06f1a2fb697bc1d56bf106c6..c3f73ef8858991ae4b360d012321759ec181ed7c 100644 (file)
 
 #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)