From: Guenter Roeck Date: Tue, 29 Mar 2016 09:02:13 +0000 (+0800) Subject: nios2: Replace fdt_translate_address with of_flat_dt_translate_address X-Git-Tag: v4.9.8~2378^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fe889274c7a4d95c3e2d06f87ead499ea6faa2d;p=platform%2Fkernel%2Flinux-rpi3.git nios2: Replace fdt_translate_address with of_flat_dt_translate_address nios2 builds fail with the following build error. arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial': arch/nios2/kernel/prom.c:100:2: error: implicit declaration of function 'fdt_translate_address' Commit c90fe9c0394b ("of: earlycon: Move address translation to of_setup_earlycon()") replaced fdt_translate_address() with of_flat_dt_translate_address() but missed updating the nios2 code. Fixes: c90fe9c0394b ("of: earlycon: Move address translation to of_setup_earlycon()") Cc: Peter Hurley Cc: Rob Herring Signed-off-by: Guenter Roeck Acked-by: Ley Foon Tan --- diff --git a/arch/nios2/kernel/prom.c b/arch/nios2/kernel/prom.c index 718dd19..367c542 100644 --- a/arch/nios2/kernel/prom.c +++ b/arch/nios2/kernel/prom.c @@ -97,8 +97,7 @@ static int __init early_init_dt_scan_serial(unsigned long node, return 0; #endif - *addr64 = fdt_translate_address((const void *)initial_boot_params, - node); + *addr64 = of_flat_dt_translate_address(node); return *addr64 == OF_BAD_ADDR ? 0 : 1; }