diff mbox

[U-Boot,2/2] MIPS: fix syntax for fdt_chosen/initrd.

Message ID 1440008355-20929-3-git-send-email-govindraj.raja@imgtec.com
State Accepted
Delegated to: Daniel Schwierzeck
Headers show

Commit Message

Govindraj Raja Aug. 19, 2015, 6:19 p.m. UTC
From: Govindraj Raja <Govindraj.Raja@imgtec.com>

The syntax for the fdt_chosen/initrd
functions seem to deprecated in usage
from MIPS bootm implementation.

Third parameter is no more used in these api's
Refer to : include/fdt_support.h

Signed-off-by: Govindraj Raja <govindraj.raja@imgtec.com>
---
 arch/mips/lib/bootm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Daniel Schwierzeck Aug. 20, 2015, 11:47 a.m. UTC | #1
2015-08-19 20:19 GMT+02:00 Govindraj Raja <govindraj.raja@imgtec.com>:
> From: Govindraj Raja <Govindraj.Raja@imgtec.com>
>
> The syntax for the fdt_chosen/initrd
> functions seem to deprecated in usage
> from MIPS bootm implementation.
>
> Third parameter is no more used in these api's
> Refer to : include/fdt_support.h
>
> Signed-off-by: Govindraj Raja <govindraj.raja@imgtec.com>
> ---
>  arch/mips/lib/bootm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

applied to u-boot-mips/next, thanks
diff mbox

Patch

diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index e289799..9c647aa 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -95,10 +95,10 @@  static void boot_setup_fdt(bootm_headers_t *images)
 
 	debug("## setup FDT\n");
 
-	fdt_chosen(images->ft_addr, 1);
+	fdt_chosen(images->ft_addr);
 	fdt_fixup_memory_banks(images->ft_addr, &mem_start, &mem_size, 1);
 	fdt_fixup_ethernet(images->ft_addr);
-	fdt_initrd(images->ft_addr, images->initrd_start, images->initrd_end, 1);
+	fdt_initrd(images->ft_addr, images->initrd_start, images->initrd_end);
 
 #if defined(CONFIG_OF_BOARD_SETUP)
 	ft_board_setup(images->ft_addr, gd->bd);