All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/8xxx: Fix compile warning when build for a DDR1 or DDR2 board
@ 2011-01-20  7:59 Kumar Gala
  2011-01-20  8:00 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2011-01-20  7:59 UTC (permalink / raw)
  To: u-boot

ctrl_regs.c: In function 'set_ddr_sdram_mode_2':
ctrl_regs.c:690:6: warning: unused variable 'i'

'i' is only used by DDR3 code.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c b/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
index 2271071..c3e1d76 100644
--- a/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
+++ b/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
@@ -687,9 +687,9 @@ static void set_ddr_sdram_mode_2(fsl_ddr_cfg_regs_t *ddr,
 {
 	unsigned short esdmode2 = 0;	/* Extended SDRAM mode 2 */
 	unsigned short esdmode3 = 0;	/* Extended SDRAM mode 3 */
-	int i;
 
 #if defined(CONFIG_FSL_DDR3)
+	int i;
 	unsigned int rtt_wr = 0;	/* Rtt_WR - dynamic ODT off */
 	unsigned int srt = 0;	/* self-refresh temerature, normal range */
 	unsigned int asr = 0;	/* auto self-refresh disable */
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] powerpc/8xxx: Fix compile warning when build for a DDR1 or DDR2 board
  2011-01-20  7:59 [U-Boot] [PATCH] powerpc/8xxx: Fix compile warning when build for a DDR1 or DDR2 board Kumar Gala
@ 2011-01-20  8:00 ` Kumar Gala
  0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2011-01-20  8:00 UTC (permalink / raw)
  To: u-boot


On Jan 20, 2011, at 1:59 AM, Kumar Gala wrote:

> ctrl_regs.c: In function 'set_ddr_sdram_mode_2':
> ctrl_regs.c:690:6: warning: unused variable 'i'
> 
> 'i' is only used by DDR3 code.
> 
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

applied

- k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-20  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-20  7:59 [U-Boot] [PATCH] powerpc/8xxx: Fix compile warning when build for a DDR1 or DDR2 board Kumar Gala
2011-01-20  8:00 ` Kumar Gala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.