forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/mtd/maps/pxa2xx-flash.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Map driver for Intel XScale PXA2xx platforms.
34 *
45 * Author: Nicolas Pitre
56 * Copyright: (C) 2001 MontaVista Software Inc.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/module.h>
....@@ -71,8 +68,7 @@
7168 info->map.name);
7269 return -ENOMEM;
7370 }
74
- info->map.cached =
75
- ioremap_cached(info->map.phys, info->map.size);
71
+ info->map.cached = ioremap_cache(info->map.phys, info->map.size);
7672 if (!info->map.cached)
7773 printk(KERN_WARNING "Failed to ioremap cached %s\n",
7874 info->map.name);