pxa2xx-flash.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) pxa2xx-flash.c (97ef08ae275e388321dcde9190adbaa0c67b93fe)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Map driver for Intel XScale PXA2xx platforms.
4 *
5 * Author: Nicolas Pitre
6 * Copyright: (C) 2001 MontaVista Software Inc.
7 */
8

--- 54 unchanged lines hidden (view full) ---

63 info->map.size = resource_size(res);
64
65 info->map.virt = ioremap(info->map.phys, info->map.size);
66 if (!info->map.virt) {
67 printk(KERN_WARNING "Failed to ioremap %s\n",
68 info->map.name);
69 return -ENOMEM;
70 }
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Map driver for Intel XScale PXA2xx platforms.
4 *
5 * Author: Nicolas Pitre
6 * Copyright: (C) 2001 MontaVista Software Inc.
7 */
8

--- 54 unchanged lines hidden (view full) ---

63 info->map.size = resource_size(res);
64
65 info->map.virt = ioremap(info->map.phys, info->map.size);
66 if (!info->map.virt) {
67 printk(KERN_WARNING "Failed to ioremap %s\n",
68 info->map.name);
69 return -ENOMEM;
70 }
71 info->map.cached =
72 ioremap_cached(info->map.phys, info->map.size);
71 info->map.cached = ioremap_cache(info->map.phys, info->map.size);
73 if (!info->map.cached)
74 printk(KERN_WARNING "Failed to ioremap cached %s\n",
75 info->map.name);
76 info->map.inval_cache = pxa2xx_map_inval_cache;
77 simple_map_init(&info->map);
78
79 printk(KERN_NOTICE
80 "Probing %s at physical address 0x%08lx"

--- 61 unchanged lines hidden ---
72 if (!info->map.cached)
73 printk(KERN_WARNING "Failed to ioremap cached %s\n",
74 info->map.name);
75 info->map.inval_cache = pxa2xx_map_inval_cache;
76 simple_map_init(&info->map);
77
78 printk(KERN_NOTICE
79 "Probing %s at physical address 0x%08lx"

--- 61 unchanged lines hidden ---