From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Wed, 03 Feb 2010 13:52:10 +0100 Subject: [U-Boot] [PATCH 2/3] mpc5xxx/cpu_init.c: fix warning: unused variable 'gpt0' In-Reply-To: <1265018287-22037-1-git-send-email-wd@denx.de> (Wolfgang Denk's message of "Mon, 1 Feb 2010 10:58:06 +0100") References: <1265018287-22037-1-git-send-email-wd@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, > Signed-off-by: Wolfgang Denk Acked-by: Detlev Zundel > --- > 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 -- I have always observed that the pretensions of all people are in exact inverse ratio to their merits; this is one of the axioms of morals. -- Joseph Lagrange -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de