| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/sh/kernel/cpu/sh2/probe.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * CPU Subtype Probing for SH-2. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | #include <linux/init.h> |
|---|
| 13 | 10 | #include <linux/of_fdt.h> |
|---|
| .. | .. |
|---|
| 24 | 21 | if (!of_flat_dt_is_compatible(node, "jcore,cache")) |
|---|
| 25 | 22 | return 0; |
|---|
| 26 | 23 | |
|---|
| 27 | | - j2_ccr_base = (u32 __iomem *)of_flat_dt_translate_address(node); |
|---|
| 24 | + j2_ccr_base = ioremap(of_flat_dt_translate_address(node), 4); |
|---|
| 28 | 25 | |
|---|
| 29 | 26 | return 1; |
|---|
| 30 | 27 | } |
|---|