hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/hexagon/include/asm/io.h
....@@ -1,21 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * IO definitions for the Hexagon architecture
34 *
45 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 and
8
- * only version 2 as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
- * 02110-1301, USA.
196 */
207
218 #ifndef _ASM_IO_H
....@@ -40,7 +27,7 @@
4027 extern int remap_area_pages(unsigned long start, unsigned long phys_addr,
4128 unsigned long end, unsigned long flags);
4229
43
-extern void __iounmap(const volatile void __iomem *addr);
30
+extern void iounmap(const volatile void __iomem *addr);
4431
4532 /* Defined in lib/io.c, needed for smc91x driver. */
4633 extern void __raw_readsw(const void __iomem *addr, void *data, int wordlen);
....@@ -184,17 +171,9 @@
184171 #define writew_relaxed __raw_writew
185172 #define writel_relaxed __raw_writel
186173
187
-#define mmiowb()
188
-
189174 void __iomem *ioremap(unsigned long phys_addr, unsigned long size);
190
-#define ioremap_nocache ioremap
191175 #define ioremap_uc(X, Y) ioremap((X), (Y))
192176
193
-
194
-static inline void iounmap(volatile void __iomem *addr)
195
-{
196
- __iounmap(addr);
197
-}
198177
199178 #define __raw_writel writel
200179