Fix bugs in the CONFIG_OF_LIBFDT
PATCH 5/17 Fix bugs in the CONFIG_OF_LIBFDT
Stupid coding mistakes (identified by Timur Tabi, thanks).
Signed-off-by Gerald Van Baren <[email protected]>
--- common/cmd_bootm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
common/cmd_bootm.c +2 -2
@@ -795,7 +795,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,return ; }#if defined(CONFIG_OF_LIBFDT ) -if (fdt_check_header (of_flat_tree +sizeof (image_header_t)) ==0 ) { +if (fdt_check_header (of_flat_tree +sizeof (image_header_t)) !=0 ) {#else if (*((ulong *)(of_flat_tree +sizeof (image_header_t))) !=OF_DT_HEADER ) {#endif
@@ -951,7 +951,7 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, of_flat_tree = (char *)of_start;printf (" Loading Device Tree to %08lx, end %08lx ... " , of_start, of_start + of_len -1 ); - err =fdt_open_into ((void *)of_start, (void *)of_data, of_len); + err =fdt_open_into ((void *)of_data, (void *)of_start, of_len);if (err !=0 ) {printf ("libfdt: %s " __FILE__" %d\n" ,fdt_strerror (err), __LINE__); }
Signature · 1 line
1.4.4.4
PATCH 5/17 Fix bugs in the CONFIG_OF_LIBFDT
Quoted 3 lines · Jerry Van Baren
Stupid coding mistakes (identified by Timur Tabi, thanks).
Signed-off-by Gerald Van Baren <[email protected]>
Acked-by Grant Likely <[email protected]>
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely at secretlab.ca (403) 399-0195