board/freescale/mpc8569mds/mpc8569mds.c: Fix GCC 4.6 build warning

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>
This commit is contained in:
Kumar Gala 2011-11-09 10:03:12 -06:00
parent 502dd36b78
commit e3779209dd

View file

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