]> git.sur5r.net Git - u-boot/commitdiff
mtd: nand: denali_dt: replace printf() with pr_err()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 30 Nov 2017 04:45:26 +0000 (13:45 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 4 Dec 2017 13:00:02 +0000 (22:00 +0900)
The Linux derived log functions can be used anywhere and easily
turned on/off by CONFIG_LOGLEVEL.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/denali_dt.c

index 9d6cb09b42258a57534764a8aad31829c377cce3..c96512f2dfd549458dc00b44fce5587396845ab5 100644 (file)
@@ -5,11 +5,11 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
+#include <linux/printk.h>
 
 #include "denali.h"
 
@@ -118,6 +118,6 @@ void board_nand_init(void)
                                          DM_GET_DRIVER(denali_nand_dt),
                                          &dev);
        if (ret && ret != -ENODEV)
-               printf("Failed to initialize Denali NAND controller. (error %d)\n",
+               pr_err("Failed to initialize Denali NAND controller. (error %d)\n",
                       ret);
 }