[U-Boot] [PATCH] net, davinci_emac: fix compiler error

Heiko Schocher hs at denx.de
Fri Oct 28 07:59:03 CEST 2011


This patch fixes following compile error for the davinice_emac driver:

$ make -s cam_enc_4xx
Configuring for cam_enc_4xx board...
Generating include/generated/asm-offsets.h
davinci_emac.c: In function 'davinci_emac_initialize':
davinci_emac.c:817:3: error: request for member 'name' in something not a structure or union
make[2]: *** [davinci_emac.o] Fehler 1
make[1]: *** [drivers/net/libnet.o] Fehler 2
make: *** [cam_enc_4xx] Fehler 2
[hs at pollux u-boot]$

introduced through commit:
062fe7d332c28ede25626f448681e43d76bb312e

Signed-off-by: Heiko Schocher <hs at denx.de>
Cc: Manjunath Hadli <manjunath.hadli at ti.com>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
Cc: Sandeep Paulraj <s-paulraj at ti.com>
Cc: Ben Warren <biggerbadderben at gmail.com>
---
 drivers/net/davinci_emac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index e864a41..fa31159 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -814,7 +814,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);
-- 
1.7.6.4



More information about the U-Boot mailing list