From: Leif Lindholm Date: Thu, 27 May 2004 11:49:33 +0200 Subject: [U-Boot-Users] [patch] 1.1.1: dbau1x00 - return correctly when CONFIG_IDE_PCMCIA is not set Message-ID: <1085651373.11138.10.camel@fortress> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi A misplaced #endif caused checkboard() not to explicitly return if CONFIG_IDE_PCMCIA was not set in config. This caused board_init_f() to hang(). regards / Leif diff -purN u-boot-1.1.1/board/dbau1x00/dbau1x00.c u-boot-1.1.1-new/board/dbau1x00/dbau1x00.c --- u-boot-1.1.1/board/dbau1x00/dbau1x00.c 2004-01-04 23:51:12.000000000 +0100 +++ u-boot-1.1.1-new/board/dbau1x00/dbau1x00.c 2004-05-27 11:41:06.000000000 +0200 @@ -110,11 +110,11 @@ int checkboard (void) CFG_PCMCIA_MEM_ADDR, /* Hi */ 0x3E000017, /* Lo0 */ 0x3E200017); /* Lo1 */ +#endif /* Release reset of ethernet PHY chips */ /* Always do this, because linux does not know about it */ *phy = 3; return 0; -#endif }