hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/sh/kernel/cpu/sh2/probe.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * arch/sh/kernel/cpu/sh2/probe.c
34 *
45 * CPU Subtype Probing for SH-2.
56 *
67 * Copyright (C) 2002 Paul Mundt
7
- *
8
- * This file is subject to the terms and conditions of the GNU General Public
9
- * License. See the file "COPYING" in the main directory of this archive
10
- * for more details.
118 */
129 #include <linux/init.h>
1310 #include <linux/of_fdt.h>
....@@ -24,7 +21,7 @@
2421 if (!of_flat_dt_is_compatible(node, "jcore,cache"))
2522 return 0;
2623
27
- j2_ccr_base = (u32 __iomem *)of_flat_dt_translate_address(node);
24
+ j2_ccr_base = ioremap(of_flat_dt_translate_address(node), 4);
2825
2926 return 1;
3027 }