TQM85xx: fix typo introduce by commit ffbb5cb9
[oweals/u-boot.git] / cpu / nios2 / cpu.c
index c9db1276146f15cea38852c8d2506e255795dfd0..f4217a88cf16652ed687e707f78c920170def312 100644 (file)
 #include <nios2-io.h>
 
 #if defined (CFG_NIOS_SYSID_BASE)
-#include <linux/time.h>
-static void check_sysid (void)
-{
-       struct nios_sysid_t *sysid =
-               (struct nios_sysid_t *)CACHE_BYPASS(CFG_NIOS_SYSID_BASE);
-       struct tm t;
-       char asc[32];
-
-       localtime_r ((time_t *)&sysid->timestamp, &t);
-       asctime_r (&t, asc);
-       printf ("SYSID : %08x, %s", sysid->id, asc);
-
-}
+extern void display_sysid (void);
 #endif /* CFG_NIOS_SYSID_BASE */
 
 int checkcpu (void)
@@ -47,7 +35,7 @@ int checkcpu (void)
 #if !defined(CFG_NIOS_SYSID_BASE)
        printf ("SYSID : <unknown>\n");
 #else
-       check_sysid ();
+       display_sysid ();
 #endif
        return (0);
 }