| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* netsc520.c -- MTD map driver for AMD NetSc520 Demonstration Board |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2001 Mark Langsdorf (mark.langsdorf@amd.com) |
|---|
| 4 | 5 | * based on sc520cdp.c by Sysgo Real-Time Solutions GmbH |
|---|
| 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|---|
| 19 | 6 | * |
|---|
| 20 | 7 | * The NetSc520 is a demonstration board for the Elan Sc520 processor available |
|---|
| 21 | 8 | * from AMD. It has a single back of 16 megs of 32-bit Flash ROM and another |
|---|
| .. | .. |
|---|
| 95 | 82 | printk(KERN_NOTICE "NetSc520 flash device: 0x%Lx at 0x%Lx\n", |
|---|
| 96 | 83 | (unsigned long long)netsc520_map.size, |
|---|
| 97 | 84 | (unsigned long long)netsc520_map.phys); |
|---|
| 98 | | - netsc520_map.virt = ioremap_nocache(netsc520_map.phys, netsc520_map.size); |
|---|
| 85 | + netsc520_map.virt = ioremap(netsc520_map.phys, netsc520_map.size); |
|---|
| 99 | 86 | |
|---|
| 100 | 87 | if (!netsc520_map.virt) { |
|---|
| 101 | | - printk("Failed to ioremap_nocache\n"); |
|---|
| 88 | + printk("Failed to ioremap\n"); |
|---|
| 102 | 89 | return -EIO; |
|---|
| 103 | 90 | } |
|---|
| 104 | 91 | |
|---|