summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-31 03:40:42 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-31 03:40:42 +0200
commit1e6d88ccf41c7ef2d6c99aa5e7fb9215aa0e5423 (patch)
tree62f5250921c403703c7050f44d33fd2dafce899e /arch
parentMerge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert... (diff)
parentnios2: Replace fdt_translate_address with of_flat_dt_translate_address (diff)
downloadlinux-1e6d88ccf41c7ef2d6c99aa5e7fb9215aa0e5423.tar.xz
linux-1e6d88ccf41c7ef2d6c99aa5e7fb9215aa0e5423.zip
Merge tag 'nios2-v4.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2
Pull nios2 fix from Ley Foon Tan: "Replace fdt_translate_address with of_flat_dt_translate_address" Fixes a build failure. * tag 'nios2-v4.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2: nios2: Replace fdt_translate_address with of_flat_dt_translate_address
Diffstat (limited to 'arch')
-rw-r--r--arch/nios2/kernel/prom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/nios2/kernel/prom.c b/arch/nios2/kernel/prom.c
index 718dd197909f..367c5426157b 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;
}