public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 2/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0'
@ 2010-02-01  9:58 Wolfgang Denk
  2010-02-01  9:58 ` [U-Boot] [PATCH 3/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'cdm' Wolfgang Denk
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Wolfgang Denk @ 2010-02-01  9:58 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 cpu/mpc5xxx/cpu_init.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cpu/mpc5xxx/cpu_init.c b/cpu/mpc5xxx/cpu_init.c
index b151464..2aa6e1c 100644
--- a/cpu/mpc5xxx/cpu_init.c
+++ b/cpu/mpc5xxx/cpu_init.c
@@ -46,9 +46,12 @@ void cpu_init_f (void)
 		(struct mpc5xxx_gpio *) MPC5XXX_GPIO;
 	volatile struct mpc5xxx_xlb *xlb =
 		(struct mpc5xxx_xlb *) MPC5XXX_XLBARB;
+#if defined(CONFIG_WATCHDOG)
 	volatile struct mpc5xxx_gpt *gpt0 =
 		(struct mpc5xxx_gpt *) MPC5XXX_GPT;
+#endif /* CONFIG_WATCHDOG */
 	unsigned long addecr = (1 << 25); /* Boot_CS */
+
 #if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_MGT5100)
 	addecr |= (1 << 22); /* SDRAM enable */
 #endif
-- 
1.6.2.5

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

end of thread, other threads:[~2010-03-15 17:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01  9:58 [U-Boot] [PATCH 2/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0' Wolfgang Denk
2010-02-01  9:58 ` [U-Boot] [PATCH 3/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'cdm' Wolfgang Denk
2010-02-03 12:53   ` Detlev Zundel
2010-02-03 14:10     ` Wolfgang Denk
2010-03-08 12:45       ` [U-Boot] [PATCH] mpc5xxx: Remove all references to MGT5100 Detlev Zundel
2010-03-08 14:05         ` Detlev Zundel
2010-03-12  9:01           ` [U-Boot] [PATCH v2] " Detlev Zundel
2010-03-12 21:29             ` Wolfgang Denk
2010-03-15 16:02               ` Detlev Zundel
2010-03-15 17:04                 ` Wolfgang Denk
2010-03-14  0:05             ` Wolfgang Denk
2010-02-03 19:00   ` [U-Boot] [PATCH 3/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'cdm' Wolfgang Denk
2010-02-03 12:52 ` [U-Boot] [PATCH 2/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0' Detlev Zundel
2010-02-03 19:00 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox