X-Git-Url: https://repo.jachan.dev/J-u-boot.git/blobdiff_plain/1ca0ddb643f3b152439f7bb8f6ee3f5826d7102d..880fcc49eb40a78ed27ff575aa02034d7bd74e80:/common/board_r.c diff --git a/common/board_r.c b/common/board_r.c index 1acad069d92..62228a723e1 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -63,10 +64,8 @@ #include #include #include -#include #include #include -#include #include DECLARE_GLOBAL_DATA_PTR; @@ -204,8 +203,7 @@ static int initr_malloc(void) */ start = gd->relocaddr - TOTAL_MALLOC_LEN; gd_set_malloc_start(start); - mem_malloc_init((ulong)map_sysmem(start, TOTAL_MALLOC_LEN), - TOTAL_MALLOC_LEN); + mem_malloc_init(start, TOTAL_MALLOC_LEN); return 0; } @@ -484,7 +482,7 @@ static int initr_boot_led_on(void) return 0; } -#ifdef CONFIG_CMD_NET +#if defined(CONFIG_CMD_NET) static int initr_net(void) { puts("Net: "); @@ -749,7 +747,7 @@ static init_fnc_t init_sequence_r[] = { #ifdef CONFIG_PCI_ENDPOINT pci_ep_init, #endif -#ifdef CONFIG_CMD_NET +#if defined(CONFIG_CMD_NET) INIT_FUNC_WATCHDOG_RESET initr_net, #endif