Skip to content

Commit

Permalink
nios2: Replace fdt_translate_address with of_flat_dt_translate_address
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
groeck authored and Ley Foon Tan committed Mar 31, 2016
1 parent f55532a commit 8fe8892
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/nios2/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8fe8892

Please sign in to comment.