Skip to contentSkip to conversation

ibm_newemac: Fix typo reading TAH channel info

PATCH In review Benjamin Herrenschmidt 1 participant 1 message Dec 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 9/11 ibm_newemac: Fix typo reading TAH channel info

From: Valentine Barshak <[email protected]>

This patch fixes a typo in ibm_newemac/core.c
(tah_port should be used instead of tah_ph)

---

 drivers/net/ibm_newemac/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ibm_newemac/core.c +1 -1
Index: linux-work/drivers/net/ibm_newemac/core.c
===================================================================
@@ -2442,7 +2442,7 @@ static int __devinit emac_init_config(st
 	if (emac_read_uint_prop(np, "tah-device", &dev->tah_ph, 0))
 		dev->tah_ph = 0;
 	if (emac_read_uint_prop(np, "tah-channel", &dev->tah_port, 0))
-		dev->tah_ph = 0;
+		dev->tah_port = 0;
 	if (emac_read_uint_prop(np, "mdio-device", &dev->mdio_ph, 0))
 		dev->mdio_ph = 0;
 	if (emac_read_uint_prop(np, "zmii-device", &dev->zmii_ph, 0))