Skip to contentSkip to conversation

1.1.1: dbau1x00 - return correctly when CONFIG_IDE_PCMCIA is not set

PATCH New Leif Lindholm 2 participants 2 messages May 27, 2004 – Jun 9, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 1.1.1: dbau1x00 - return correctly when CONFIG_IDE_PCMCIA is not set

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
board/dbau1x00/dbau1x00.c 2004-05-27 11:41:06.000000000 +0200 renamed from board/dbau1x00/dbau1x00.c 2004-01-04 23:51:12.000000000 +0100 +1 -1
diff -purN u-boot-1.1.1/board/dbau1x00/dbau1x00.c u-boot-1.1.1-new/board/dbau1x00/dbau1x00.c
@@ -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
 }
#1 lore raw

PATCH 1/1 1.1.1: dbau1x00 - return correctly when CONFIG_IDE_PCMCIA is not set

Quoted 4 lines · In message <1085651373.11138.10.camel@fortress> you wrote:

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().

Added, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Business is like a wheelbarrow. Nothing ever happens until you  start
pushing.