]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sh: j2: Use ioremap() to translate device tree address into kernel memory
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Wed, 3 May 2023 12:57:41 +0000 (14:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:20 +0000 (08:37 +0200)
commitfd869bdb5f12af59f6dab0c13b30a34ae023213d
tree511b80cc7e0d33bd2d087bc90cac9ca5be4dbaa9
parent85f4c53849e4e921eaa53078baefddd06306a725
sh: j2: Use ioremap() to translate device tree address into kernel memory

[ Upstream commit bc9d1f0cecd2407cfb2364a7d4be2f52d1d46a9d ]

Addresses the following warning when building j2_defconfig:

arch/sh/kernel/cpu/sh2/probe.c: In function 'scan_cache':
arch/sh/kernel/cpu/sh2/probe.c:24:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   24 |  j2_ccr_base = (u32 __iomem *)of_flat_dt_translate_address(node);
      |

Fixes: 5a846abad07f ("sh: add support for J-Core J2 processor")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Rob Landley <rob@landley.net>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/20230503125746.331835-1-glaubitz@physik.fu-berlin.de
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/sh/kernel/cpu/sh2/probe.c