hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mtd/maps/netsc520.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* netsc520.c -- MTD map driver for AMD NetSc520 Demonstration Board
23 *
34 * Copyright (C) 2001 Mark Langsdorf (mark.langsdorf@amd.com)
45 * 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
196 *
207 * The NetSc520 is a demonstration board for the Elan Sc520 processor available
218 * from AMD. It has a single back of 16 megs of 32-bit Flash ROM and another
....@@ -95,10 +82,10 @@
9582 printk(KERN_NOTICE "NetSc520 flash device: 0x%Lx at 0x%Lx\n",
9683 (unsigned long long)netsc520_map.size,
9784 (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);
9986
10087 if (!netsc520_map.virt) {
101
- printk("Failed to ioremap_nocache\n");
88
+ printk("Failed to ioremap\n");
10289 return -EIO;
10390 }
10491