]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/board_f.c
common/board_f: implement type casting for gd structure
[karo-tx-uboot.git] / common / board_f.c
index c265379d9b7ecd7485adf80cccda28c2c9f053f4..8314d1247ffad2cd1333f8f0e30e732a9c943aee 100644 (file)
@@ -1081,7 +1081,7 @@ void board_init_f_r(void)
         * Transfer execution from Flash to RAM by calculating the address
         * of the in-RAM copy of board_init_r() and calling it
         */
-       (board_init_r + gd->reloc_off)(gd, gd->relocaddr);
+       (board_init_r + gd->reloc_off)((gd_t *)gd, gd->relocaddr);
 
        /* NOTREACHED - board_init_r() does not return */
        hang();