Message ID | fb76aed2eb920d4f6accb67774103eb478fe25fe.1693384846.git.ysato@users.sourceforge.jp (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Device Tree support for SH7751 based board | expand |
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index bf502ba8da95..846df856f258 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -643,6 +643,9 @@ void __init early_init_fdt_scan_reserved_mem(void) fdt_get_mem_rsv(initial_boot_params, n, &base, &size); if (!size) break; +#ifdef CONFIG_SUPERH + base = virt_to_phys(base); +#endif memblock_reserve(base, size); }
sh using virt address in FDT. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> --- drivers/of/fdt.c | 3 +++ 1 file changed, 3 insertions(+)