From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 06/16] board/freescale/mpc8548cds/mpc8548cds.c: Fix GCC 4.6 build warning
Date: Wed, 9 Nov 2011 10:29:37 -0600 [thread overview]
Message-ID: <1320856180-8372-7-git-send-email-galak@kernel.crashing.org> (raw)
In-Reply-To: <1320856180-8372-6-git-send-email-galak@kernel.crashing.org>
Fix:
mpc8548cds.c: In function 'local_bus_init':
mpc8548cds.c:87:7: warning: variable 'lbc_hz' set but not used [-Wunused-but-set-variable]
mpc8548cds.c: In function 'lbc_sdram_init':
mpc8548cds.c:121:7: warning: variable 'cpu_board_rev' set but not used [-Wunused-but-set-variable]
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
board/freescale/mpc8548cds/mpc8548cds.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index d33ef7e..e5563f7 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -84,12 +84,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) {
@@ -118,7 +116,6 @@ void lbc_sdram_init(void)
uint idx;
volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
- uint cpu_board_rev;
uint lsdmr_common;
puts("LBC SDRAM: ");
@@ -140,7 +137,6 @@ void lbc_sdram_init(void)
/*
* MPC8548 uses "new" 15-16 style addressing.
*/
- cpu_board_rev = get_cpu_board_revision();
lsdmr_common = CONFIG_SYS_LBC_LSDMR_COMMON;
lsdmr_common |= LSDMR_BSMA1516;
--
1.7.3.4
next prev parent reply other threads:[~2011-11-09 16:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 16:29 [U-Boot] [PATCH 00/16] Fix GCC 4.6 build warning related to MPC85xx builds Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 01/16] arch/powerpc/cpu/mpc85xx/cpu_init.c: Fix GCC 4.6 build warning Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 02/16] arch/powerpc/cpu/mpc85xx/tlb.c: " Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 03/16] arch/powerpc/cpu/mpc8xxx/fsl_lbc.c: " Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 04/16] board/freescale/common/cds_pci_ft.c: " Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 05/16] board/freescale/common/pixis.c: " Kumar Gala
2011-11-09 16:29 ` Kumar Gala [this message]
2011-11-09 16:29 ` [U-Boot] [PATCH 07/16] board/freescale/mpc8568mds/mpc8568mds.c: " Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 08/16] board/freescale/mpc8569mds/mpc8569mds.c: " Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 09/16] board/sbc8548/sbc8548.c: " Kumar Gala
2011-11-11 13:34 ` [U-Boot] [PATCH 00/16] Fix GCC 4.6 build warning related to MPC85xx builds Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320856180-8372-7-git-send-email-galak@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox