From 645e752c5a84baeb21015cdc85fc05b7d16312c8 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 11 May 2024 01:13:52 +0000
Subject: [PATCH] disable i2c1

---
 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