Patchwork [U-Boot,01/14] davinci_emac: compilation fix, phy is array now

login
register
mail settings
Submitter Ilya Yanok
Date Nov. 1, 2011, 11:15 p.m.
Message ID <1320189368-9763-2-git-send-email-yanok@emcraft.com>
Download mbox | patch
Permalink /patch/123165/
State Accepted
Delegated to: Sandeep Paulraj
Headers show

Comments

Ilya Yanok - Nov. 1, 2011, 11:15 p.m.
Fix compilation issues introduced by recent multiply PHY patch.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 drivers/net/davinci_emac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index 7dacb23..a900480 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -809,7 +809,7 @@  int davinci_emac_initialize(void)
 			phy[i].auto_negotiate = gen_auto_negotiate;
 		}
 
-		debug("Ethernet PHY: %s\n", phy.name);
+		debug("Ethernet PHY: %s\n", phy[i].name);
 
 		miiphy_register(phy[i].name, davinci_mii_phy_read,
 						davinci_mii_phy_write);