board/freescale/mpc8569mds/mpc8569mds.c: Fix GCC 4.6 build warning
authorKumar Gala <galak@kernel.crashing.org>
Wed, 9 Nov 2011 16:03:12 +0000 (10:03 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 11 Nov 2011 13:49:00 +0000 (07:49 -0600)
mpc8569mds.c: In function 'local_bus_init':
mpc8569mds.c:306:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/mpc8569mds/mpc8569mds.c

index 89557d221f99895e65c0012464602d9f1a346453..d119c6517f65c7bbdb1f082db3f52ee1aacc5893 100644 (file)
@@ -303,12 +303,10 @@ local_bus_init(void)
        volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
 
        uint clkdiv;
-       uint lbc_hz;
        sys_info_t sysinfo;
 
        get_sys_info(&sysinfo);
        clkdiv = (lbc->lcrr & LCRR_CLKDIV) * 2;
-       lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
 
        out_be32(&gur->lbiuiplldcr1, 0x00078080);
        if (clkdiv == 16)