command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / arch / m68k / cpu / mcf530x / cpu.c
index 78f438548b6119e9bc2334c7299e621de1d8f3c5..0659bf6558119f22059df20b9d996880e5d08e0e 100644 (file)
@@ -1,16 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2014  Angelo Dureghello <angelo@sysam.it>
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  */
 
 #include <common.h>
+#include <command.h>
+#include <init.h>
+#include <vsprintf.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_M5307
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        sim_t *sim = (sim_t *)(MMAP_SIM);
 
@@ -25,7 +27,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        return 0;
 }
 
-int checkcpu(void)
+#if defined(CONFIG_DISPLAY_CPUINFO)
+int print_cpuinfo(void)
 {
        char buf[32];
 
@@ -33,4 +36,5 @@ int checkcpu(void)
               strmhz(buf, CONFIG_SYS_CPU_CLK));
        return 0;
 }
+#endif /* CONFIG_DISPLAY_CPUINFO */
 #endif