]> Git Repo - J-u-boot.git/blobdiff - arch/arm/mach-uniphier/dram/cmd_ddrphy.c
command: Remove the cmd_tbl_t typedef
[J-u-boot.git] / arch / arm / mach-uniphier / dram / cmd_ddrphy.c
index a71f704b0c8b0e1f1f0dd15d1ff55b4dfbaa2c4a..476c5b3582308140078adab1d5a68b031a24341e 100644 (file)
@@ -1,13 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2014      Panasonic Corporation
  * Copyright (C) 2015-2017 Socionext Inc.
  *   Author: Masahiro Yamada <[email protected]>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <command.h>
+#include <stdio.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 #include <linux/sizes.h>
 
 #include "../soc-info.h"
@@ -260,14 +262,15 @@ static void reg_dump(const struct uniphier_ddrphy_param *param)
        }
 }
 
-static int do_ddr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ddr(struct cmd_tbl *cmdtp, int flag, int argc,
+                 char *const argv[])
 {
        const struct uniphier_ddrphy_param *param;
        char *cmd;
 
        param = uniphier_get_ddrphy_param();
        if (!param) {
-               printf("unsupported SoC\n");
+               pr_err("unsupported SoC\n");
                return CMD_RET_FAILURE;
        }
 
This page took 0.025728 seconds and 4 git commands to generate.