hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/mtd/maps/ts5500_flash.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ts5500_flash.c -- MTD map driver for Technology Systems TS-5500 board
34 *
45 * Copyright (C) 2004 Sean Young <sean@mess.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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
196 *
207 * Note:
218 * - In order for detection to work, jumper 3 must be set.
....@@ -69,10 +56,10 @@
6956 {
7057 int rc = 0;
7158
72
- ts5500_map.virt = ioremap_nocache(ts5500_map.phys, ts5500_map.size);
59
+ ts5500_map.virt = ioremap(ts5500_map.phys, ts5500_map.size);
7360
7461 if (!ts5500_map.virt) {
75
- printk(KERN_ERR "Failed to ioremap_nocache\n");
62
+ printk(KERN_ERR "Failed to ioremap\n");
7663 rc = -EIO;
7764 goto err2;
7865 }