forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/ar7/gpio.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2007 Felix Fietkau <nbd@openwrt.org>
34 * Copyright (C) 2007 Eugene Konev <ejka@openwrt.org>
45 * Copyright (C) 2009-2010 Florian Fainelli <florian@openwrt.org>
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 as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
196 */
207
218 #include <linux/init.h>
....@@ -321,7 +308,7 @@
321308 size = 0x1f;
322309 }
323310
324
- gpch->regs = ioremap_nocache(AR7_REGS_GPIO, size);
311
+ gpch->regs = ioremap(AR7_REGS_GPIO, size);
325312 if (!gpch->regs) {
326313 printk(KERN_ERR "%s: failed to ioremap regs\n",
327314 gpch->chip.label);