aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-30 13:45:26 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-12-04 22:00:02 +0900
commit681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1 (patch)
treeea1d3c8e03e84c8c578c002b289ac1be666ce0a2 /drivers/mtd
parentba8c9ea38a5e5f31edc3ef7e3490f0e2143a8360 (diff)
downloadu-boot-681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1.zip
u-boot-681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1.tar.gz
u-boot-681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1.tar.bz2
mtd: nand: denali_dt: replace printf() with pr_err()
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/denali_dt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c
index 9d6cb09..c96512f 100644
--- a/drivers/mtd/nand/denali_dt.c
+++ b/drivers/mtd/nand/denali_dt.c
@@ -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);
}