[U-Boot] [PATCH v2 7/7] mpc5121: cpu/mpc512x/diu.c: fix warnings

2010-03-16 Thread Anatolij Gustschin
Fix warnings while compiling with CONFIG_VIDEO enabled:

diu.c: In function 'video_hw_init':
diu.c:158: warning: 'return' with no value, in function returning non-void
diu.c:162: warning: format '%ld' expects type 'long int', but argument 6 has 
type 'int'
diu.c:162: warning: format '%ld' expects type 'long int', but argument 7 has 
type 'int'

Signed-off-by: Anatolij Gustschin 
---
New patch in this series, needed after cfb_console driver activation.

 cpu/mpc512x/diu.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpu/mpc512x/diu.c b/cpu/mpc512x/diu.c
index fc43a9d..463c88d 100644
--- a/cpu/mpc512x/diu.c
+++ b/cpu/mpc512x/diu.c
@@ -155,10 +155,10 @@ void *video_hw_init(void)
struct fb_info *info;
 
if (mpc5121_diu_init() < 0)
-   return;
+   return NULL;
 
/* fill in Graphic device struct */
-   sprintf(pGD->modeIdent, "%dx%dx%d %ldkHz %ldHz",
+   sprintf(pGD->modeIdent, "%dx%dx%d %dkHz %dHz",
xres, yres, 32, 64, 60);
 
pGD->frameAdrs = (unsigned int)fsl_fb_open(&info);
-- 
1.6.3.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 7/7] mpc5121: cpu/mpc512x/diu.c: fix warnings

2010-03-21 Thread Wolfgang Denk
Dear Anatolij Gustschin,

In message <1268755808-24931-8-git-send-email-ag...@denx.de> you wrote:
> Fix warnings while compiling with CONFIG_VIDEO enabled:
> 
> diu.c: In function 'video_hw_init':
> diu.c:158: warning: 'return' with no value, in function returning non-void
> diu.c:162: warning: format '%ld' expects type 'long int', but argument 6 has 
> type 'int'
> diu.c:162: warning: format '%ld' expects type 'long int', but argument 7 has 
> type 'int'
> 
> Signed-off-by: Anatolij Gustschin 
> ---
> New patch in this series, needed after cfb_console driver activation.
> 
>  cpu/mpc512x/diu.c |4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

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: w...@denx.de
Hi there! This is just a note from me, to you, to tell you, the  per-
son  reading this note, that I can't think up any more famous quotes,
jokes, nor bizarre stories, so you may as well go home.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot