From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 20 Feb 2024 01:18:26 +0000
Subject: [PATCH] write in 30M
---
kernel/arch/mips/fw/arc/arc_con.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/kernel/arch/mips/fw/arc/arc_con.c b/kernel/arch/mips/fw/arc/arc_con.c
index 365e391..7fdce23 100644
--- a/kernel/arch/mips/fw/arc/arc_con.c
+++ b/kernel/arch/mips/fw/arc/arc_con.c
@@ -28,7 +28,9 @@
static int prom_console_setup(struct console *co, char *options)
{
- return !(prom_flags & PROM_FLAG_USE_AS_CONSOLE);
+ if (prom_flags & PROM_FLAG_USE_AS_CONSOLE)
+ return 0;
+ return -ENODEV;
}
static struct console arc_cons = {
--
Gitblit v1.6.2