diff options
author | Wolfgang Denk <wd@denx.de> | 2010-01-31 21:58:48 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-02-03 20:00:14 +0100 |
commit | 13d8bfe26c0dd2c08b76c5f077e800a718859bbc (patch) | |
tree | 0b89617e0a63873df7a9eca7168bae108ad9dc6d /cpu | |
parent | 5f566f454750be4f2f83288ef382afcb9c4aa8a4 (diff) | |
download | u-boot-imx-13d8bfe26c0dd2c08b76c5f077e800a718859bbc.zip u-boot-imx-13d8bfe26c0dd2c08b76c5f077e800a718859bbc.tar.gz u-boot-imx-13d8bfe26c0dd2c08b76c5f077e800a718859bbc.tar.bz2 |
mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0'
Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r-- | 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 |