]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
85xx: Fix compile breakage with sbc8540 and sbc8560
authorWolfgang Denk <wd@denx.de>
Wed, 28 Jan 2009 22:06:42 +0000 (23:06 +0100)
committerWolfgang Denk <wd@denx.de>
Wed, 28 Jan 2009 22:10:32 +0000 (23:10 +0100)
This fixes an error which raises just a warning:
sbc8560.c:250: warning: passing argument 2 of 'strmhz' makes integer from pointer without a cast

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/sbc8560/sbc8560.c

index 3d4008b00f0db78ef0b87cf8e7156b91578fbe9a..7f032c8fad81f4918e9d213ec302c549c5a4dbea 100644 (file)
@@ -247,7 +247,7 @@ int checkboard (void)
 #else
        printf ("Board: Wind River SBC8540 Board\n");
 #endif
-       printf ("\tCPU: %s MHz\n", strmhz(buf, sysinfo.freqProcessor));
+       printf ("\tCPU: %s MHz\n", strmhz(buf, sysinfo.freqProcessor[0]));
        printf ("\tCCB: %s MHz\n", strmhz(buf, sysinfo.freqSystemBus));
        printf ("\tDDR: %s MHz\n", strmhz(buf, sysinfo.freqSystemBus/2));
        if((CONFIG_SYS_LBC_LCRR & 0x0f) == 2 || (CONFIG_SYS_LBC_LCRR & 0x0f) == 4 \