From: Wolfgang Denk Date: Wed, 28 Jan 2009 21:05:27 +0100 Subject: [U-Boot] [PATCH] 85xx: Fix compile breakage with MPC8540EVAL In-Reply-To: <1233153070-14299-1-git-send-email-galak@kernel.crashing.org> References: <1233153070-14299-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20090128200527.96265832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1233153070-14299-1-git-send-email-galak@kernel.crashing.org> you wrote: > Configuring for MPC8540EVAL board... > mpc8540eval.c: In function 'checkboard': > mpc8540eval.c:53: error: invalid operands to binary / > make[1]: *** [mpc8540eval.o] Error 1 > > Signed-off-by: Kumar Gala > --- > board/mpc8540eval/mpc8540eval.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/board/mpc8540eval/mpc8540eval.c b/board/mpc8540eval/mpc8540eval.c > index bf270f4..72a1ad3 100644 > --- a/board/mpc8540eval/mpc8540eval.c > +++ b/board/mpc8540eval/mpc8540eval.c > @@ -50,7 +50,7 @@ int checkboard (void) > get_sys_info (&sysinfo); > > printf ("Board: Freescale MPC8540EVAL Board\n"); > - printf ("\tCPU: %lu MHz\n", sysinfo.freqProcessor / 1000000); > + printf ("\tCPU: %lu MHz\n", sysinfo.freqProcessor[0] / 1000000); > printf ("\tCCB: %lu MHz\n", sysinfo.freqSystemBus / 1000000); > printf ("\tDDR: %lu MHz\n", sysinfo.freqSystemBus / 2000000); > if((CONFIG_SYS_LBC_LCRR & 0x0f) == 2 || (CONFIG_SYS_LBC_LCRR & 0x0f) == 4 \ Looks obvious enough. Applied. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The amount of time between slipping on the peel and landing on the pavement is precisely 1 bananosecond.