]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
mpc5121: cpu/mpc512x/diu.c: fix warnings
authorAnatolij Gustschin <agust@denx.de>
Tue, 16 Mar 2010 16:10:08 +0000 (17:10 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 21 Mar 2010 21:22:53 +0000 (22:22 +0100)
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 <agust@denx.de>
cpu/mpc512x/diu.c

index a24f39510e5dfce348a8343228c42c1390987047..ca459a101e91739acc8a35224ded4b4c0e447005 100644 (file)
@@ -145,10 +145,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);