From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Durrant Date: Wed, 20 Jan 2010 13:33:45 -0500 Subject: [U-Boot] ColdFire/M68K board.c initialization / order matters [PATCH] -- resent in git format In-Reply-To: <4B561B19.6010006@arcturusnetworks.com> References: <4B561B19.6010006@arcturusnetworks.com> Message-ID: <4B574C89.7020807@arcturusnetworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de lib_m68k_board.patch - eth_init() requires eth_current which is initialized in eth_initialize() so eth_initialize (bd) should be called first then eth_init(bd) Signed-off-by: David Wu Signed-off-by: Michael Durrant --- lib_m68k/board.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib_m68k/board.c b/lib_m68k/board.c index 732023d..c17394b 100644 --- a/lib_m68k/board.c +++ b/lib_m68k/board.c @@ -639,13 +639,13 @@ void board_init_r (gd_t *id, ulong dest_ #endif #if defined(CONFIG_CMD_NET) WATCHDOG_RESET(); -#if defined(FEC_ENET) - eth_init(bd); -#endif #if defined(CONFIG_NET_MULTI) puts ("Net: "); eth_initialize (bd); #endif +#if defined(FEC_ENET) + eth_init(bd); +#endif #endif #ifdef CONFIG_POST -- 1.4.3.4