diff mbox

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

Message ID 1319781543-15238-1-git-send-email-hs@denx.de
State Accepted
Commit e0297a5599c0eab00910006b788f72058efb5b1e
Delegated to: Sandeep Paulraj
Headers show

Commit Message

Heiko Schocher Oct. 28, 2011, 5:59 a.m. UTC
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@pollux u-boot]$

introduced through commit:
062fe7d332c28ede25626f448681e43d76bb312e

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

Comments

Hadli, Manjunath Oct. 28, 2011, 7:47 a.m. UTC | #1
Heiko,
     
 Thank you very much for identifying it and sending across a patch. 
 I was about to send the patch :)


Regards
--Manju

On Fri, Oct 28, 2011 at 11:29:03, Heiko Schocher wrote:
> 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@pollux u-boot]$
> 
> introduced through commit:
> 062fe7d332c28ede25626f448681e43d76bb312e
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Manjunath Hadli <manjunath.hadli@ti.com>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> Cc: Ben Warren <biggerbadderben@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
> 
>
diff mbox

Patch

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);