Commit 681ed4d0d5096b16f81c54c3e5a5efdc9f5f0bc1
1 parent
ba8c9ea38a
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/mtd/nand/denali_dt.c
| ... | ... | @@ -5,11 +5,11 @@ |
| 5 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -#include <common.h> | |
| 9 | 8 | #include <clk.h> |
| 10 | 9 | #include <dm.h> |
| 11 | 10 | #include <linux/io.h> |
| 12 | 11 | #include <linux/ioport.h> |
| 12 | +#include <linux/printk.h> | |
| 13 | 13 | |
| 14 | 14 | #include "denali.h" |
| 15 | 15 | |
| ... | ... | @@ -118,7 +118,7 @@ |
| 118 | 118 | DM_GET_DRIVER(denali_nand_dt), |
| 119 | 119 | &dev); |
| 120 | 120 | if (ret && ret != -ENODEV) |
| 121 | - printf("Failed to initialize Denali NAND controller. (error %d)\n", | |
| 121 | + pr_err("Failed to initialize Denali NAND controller. (error %d)\n", | |
| 122 | 122 | ret); |
| 123 | 123 | } |