Skip to content

Commit 8fe8892

Browse files
groeckLey Foon Tan
authored andcommitted
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 c90fe9c ("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: c90fe9c ("of: earlycon: Move address translation to of_setup_earlycon()") Cc: Peter Hurley <[email protected]> Cc: Rob Herring <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Acked-by: Ley Foon Tan <[email protected]>
1 parent f55532a commit 8fe8892

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/nios2/kernel/prom.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ static int __init early_init_dt_scan_serial(unsigned long node,
9797
return 0;
9898
#endif
9999

100-
*addr64 = fdt_translate_address((const void *)initial_boot_params,
101-
node);
100+
*addr64 = of_flat_dt_translate_address(node);
102101

103102
return *addr64 == OF_BAD_ADDR ? 0 : 1;
104103
}

0 commit comments

Comments
 (0)