]> git.sur5r.net Git - u-boot/commitdiff
tsec: fix multiple PHY support
authorZach Sadecki <Zach.Sadecki@ripcode.com>
Tue, 31 Jul 2007 17:27:25 +0000 (12:27 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 9 Aug 2007 20:47:31 +0000 (22:47 +0200)
The change entitled "Reduce CONFIG_MPC8YXX_TSECx to CONFIG_TSECx"
broke multiple PHY support in tsec.c.  This fixes it.

Signed-off-by: Zach Sadecki <Zach.Sadecki@ripcode.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
drivers/tsec.c

index c9e7f97e7fbaa1de9696d243d3e1cf47c4ee5f44..c0111234940fbc58159927342e2ed4fcf21587dd 100644 (file)
@@ -71,6 +71,7 @@ static struct tsec_info_struct tsec_info[] = {
 #else
        {TSEC1_PHY_ADDR, TSEC_GIGABIT, TSEC1_PHYIDX},
 #endif
+#else
        {0, 0, 0},
 #endif
 #if defined(CONFIG_TSEC2)
@@ -79,6 +80,7 @@ static struct tsec_info_struct tsec_info[] = {
 #else
        {TSEC2_PHY_ADDR, TSEC_GIGABIT, TSEC2_PHYIDX},
 #endif
+#else
        {0, 0, 0},
 #endif
 #ifdef CONFIG_MPC85XX_FEC