From: Wolfgang Denk Date: Sun, 31 Jan 2010 20:58:48 +0000 (+0100) Subject: mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0' X-Git-Tag: v2010.03-rc1~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13d8bfe26c0dd2c08b76c5f077e800a718859bbc;p=platform%2Fkernel%2Fu-boot.git mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0' Signed-off-by: Wolfgang Denk Acked-by: Detlev Zundel --- 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