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💯2: error: implicit declaration of function 'fdt_translate_address' Commitpull/271/headc90fe9c039("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:c90fe9c039("of: earlycon: Move address translation to of_setup_earlycon()") Cc: Peter Hurley <peter@hurleysoftware.com> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Ley Foon Tan <lftan@altera.com>
parent
f55532a0c0
commit
8fe889274c
|
|
@ -97,8 +97,7 @@ static int __init early_init_dt_scan_serial(unsigned long node,
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*addr64 = fdt_translate_address((const void *)initial_boot_params,
|
*addr64 = of_flat_dt_translate_address(node);
|
||||||
node);
|
|
||||||
|
|
||||||
return *addr64 == OF_BAD_ADDR ? 0 : 1;
|
return *addr64 == OF_BAD_ADDR ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue