UPSTREAM: 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.

Change-Id: I74a94091a9eddd56567fff0b218f576b31d28d5e
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1)
This commit is contained in:
Masahiro Yamada 2017-11-30 13:45:26 +09:00 committed by Kever Yang
parent 331c237568
commit 0e8b566562
1 changed files with 2 additions and 2 deletions

View 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);
}