mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-21 10:14:05 +08:00
board/sbc8548/sbc8548.c: Fix GCC 4.6 build warning
Fix: sbc8548.c: In function 'local_bus_init': sbc8548.c:80: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:
parent
e3779209dd
commit
dbe128a9bd
@ -77,12 +77,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 = (in_be32(&lbc->lcrr) & LCRR_CLKDIV) * 2;
|
||||
lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
|
||||
|
||||
out_be32(&gur->lbiuiplldcr1, 0x00078080);
|
||||
if (clkdiv == 16) {
|
||||
|
Loading…
Reference in New Issue
Block a user