net, davinci_emac: fix compiler error
PATCH 1/1 net, davinci_emac: fix compiler error
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 <[email protected]>
Cc Manjunath Hadli <[email protected]>
Cc Albert ARIBAUD <[email protected]>
Cc Sandeep Paulraj <[email protected]>
Cc Ben Warren <[email protected]>
--- drivers/net/davinci_emac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/davinci_emac.c +1 -1
@@ -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);
Signature · 1 line
1.7.6.4
Hadli
PATCH 1/1 net, davinci_emac: fix compiler error
Heiko,
Thank you very much for identifying it and sending across a patch. I was about to send the patch :)
Regards
--Manju
Quoted 40 lines · Heiko Schocher
This patch fixes following compile error for the
davinice_emacdriver:$ 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:
062fe7d332c28ede25626f448681e43d76bb312eSigned-off-by Heiko Schocher <[email protected]>Cc Manjunath Hadli <[email protected]>Cc Albert ARIBAUD <[email protected]>Cc Sandeep Paulraj <[email protected]>Cc Ben Warren <[email protected]>--- drivers/net/davinci_emac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/net/davinci_emac.c +1
-2@@ -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