ARM: uniphier: use pr_() instead of printf() where appropriate
Replace printf() with pr_() to specify proper loglevel.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
diff --git a/arch/arm/mach-uniphier/cpu-info.c b/arch/arm/mach-uniphier/cpu-info.c
index 90ef411..bf41d05 100644
--- a/arch/arm/mach-uniphier/cpu-info.c
+++ b/arch/arm/mach-uniphier/cpu-info.c
@@ -6,9 +6,10 @@
* SPDX-License-Identifier: GPL-2.0+
*/
-#include <common.h>
+#include <stdio.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/printk.h>
#include "soc-info.h"
@@ -59,11 +60,11 @@
printf(" (model %d, revision %d)\n", model, rev);
if (model < required_model) {
- printf("Only model %d or newer is supported.\n",
+ pr_err("Only model %d or newer is supported.\n",
required_model);
return -ENOTSUPP;
} else if (rev < required_rev) {
- printf("Only revision %d or newer is supported.\n",
+ pr_err("Only revision %d or newer is supported.\n",
required_rev);
return -ENOTSUPP;
}