| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2007 Felix Fietkau <nbd@openwrt.org> |
|---|
| 3 | 4 | * Copyright (C) 2007 Eugene Konev <ejka@openwrt.org> |
|---|
| 4 | 5 | * 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 |
|---|
| 19 | 6 | */ |
|---|
| 20 | 7 | |
|---|
| 21 | 8 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 321 | 308 | size = 0x1f; |
|---|
| 322 | 309 | } |
|---|
| 323 | 310 | |
|---|
| 324 | | - gpch->regs = ioremap_nocache(AR7_REGS_GPIO, size); |
|---|
| 311 | + gpch->regs = ioremap(AR7_REGS_GPIO, size); |
|---|
| 325 | 312 | if (!gpch->regs) { |
|---|
| 326 | 313 | printk(KERN_ERR "%s: failed to ioremap regs\n", |
|---|
| 327 | 314 | gpch->chip.label); |
|---|