summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-09 10:03:01 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-11-11 07:49:00 -0600
commit502dd36b78b4b0d1b9e347609f53782f66b5edf3 (patch)
tree7f00178b68a97b8e78d48ba69411105fc5ebb6ce /board/freescale
parent945f43101ec79fa1c9ced8e7f3a6418b273ec55d (diff)
downloadu-boot-imx-502dd36b78b4b0d1b9e347609f53782f66b5edf3.zip
u-boot-imx-502dd36b78b4b0d1b9e347609f53782f66b5edf3.tar.gz
u-boot-imx-502dd36b78b4b0d1b9e347609f53782f66b5edf3.tar.bz2
board/freescale/mpc8568mds/mpc8568mds.c: Fix GCC 4.6 build warning
Fix: mpc8568mds.c: In function 'local_bus_init': mpc8568mds.c:150:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable] mpc8568mds.c: In function 'pib_init': mpc8568mds.c:271:11: warning: variable 'orig_i2c_bus' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mpc8568mds/mpc8568mds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/freescale/mpc8568mds/mpc8568mds.c b/board/freescale/mpc8568mds/mpc8568mds.c
index 225c5d8..6e3945e 100644
--- a/board/freescale/mpc8568mds/mpc8568mds.c
+++ b/board/freescale/mpc8568mds/mpc8568mds.c
@@ -147,12 +147,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;
gur->lbiuiplldcr1 = 0x00078080;
if (clkdiv == 16) {
@@ -302,6 +300,7 @@ pib_init(void)
i2c_write(0x27, 0x3, 1, &val8, 1);
asm("eieio");
+ i2c_set_bus_num(orig_i2c_bus);
}
#ifdef CONFIG_PCI