]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc86xx/speed.c
mx31pdk: Fix CONFIG_SYS_MEMTEST_END
[u-boot] / arch / powerpc / cpu / mpc86xx / speed.c
index 64a3479d7e51dc56fd52c194b98c91b7833ed1f9..a2d0a8ac6ebdf6f75b3661e002318e4ba0651c4c 100644 (file)
@@ -97,10 +97,7 @@ void get_sys_info(sys_info_t *sysInfo)
        /* We will program LCRR to this value later */
        lcrr_div = CONFIG_SYS_LBC_LCRR & LCRR_CLKDIV;
 #else
-       {
-               volatile ccsr_lbc_t *lbc = &immap->im_lbc;
-               lcrr_div = in_be32(&lbc->lcrr) & LCRR_CLKDIV;
-       }
+       lcrr_div = in_be32(&immap->im_lbc.lcrr) & LCRR_CLKDIV;
 #endif
        if (lcrr_div == 2 || lcrr_div == 4 || lcrr_div == 8) {
                sysInfo->freqLocalBus = sysInfo->freqSystemBus / (lcrr_div * 2);