From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 08:20:59 +0000
Subject: [PATCH] kernel_5.10 no rt

---
 kernel/arch/openrisc/include/asm/io.h |   33 +++++++++------------------------
 1 files changed, 9 insertions(+), 24 deletions(-)

diff --git a/kernel/arch/openrisc/include/asm/io.h b/kernel/arch/openrisc/include/asm/io.h
index 6709b28..7d6b4a7 100644
--- a/kernel/arch/openrisc/include/asm/io.h
+++ b/kernel/arch/openrisc/include/asm/io.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * OpenRISC Linux
  *
@@ -8,15 +9,12 @@
  * OpenRISC implementation:
  * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
  * et al.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 
 #ifndef __ASM_OPENRISC_IO_H
 #define __ASM_OPENRISC_IO_H
+
+#include <linux/types.h>
 
 /*
  * PCI: can we really do 0 here if we have no port IO?
@@ -29,25 +27,12 @@
 #define PIO_OFFSET		0
 #define PIO_MASK		0
 
-#define ioremap_nocache ioremap_nocache
-#include <asm-generic/io.h>
-#include <asm/pgtable.h>
+#define ioremap ioremap
+void __iomem *ioremap(phys_addr_t offset, unsigned long size);
 
-extern void __iomem *__ioremap(phys_addr_t offset, unsigned long size,
-				pgprot_t prot);
-
-static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
-{
-	return __ioremap(offset, size, PAGE_KERNEL);
-}
-
-/* #define _PAGE_CI       0x002 */
-static inline void __iomem *ioremap_nocache(phys_addr_t offset,
-					     unsigned long size)
-{
-	return __ioremap(offset, size,
-			 __pgprot(pgprot_val(PAGE_KERNEL) | _PAGE_CI));
-}
-
+#define iounmap iounmap
 extern void iounmap(void *addr);
+
+#include <asm-generic/io.h>
+
 #endif

--
Gitblit v1.6.2