[U-Boot] DaVinci EMAC: Add name to Ethernet device

Message ID 1293565424-27772-1-git-send-email-s-paulraj@ti.com
State Accepted
Commit 2a7d603f37de94cb8529c67a35e71906f3c66dce
Delegated to: Sandeep Paulraj
Headers show

Commit Message

Sandeep Paulraj Dec. 28, 2010, 7:43 p.m.
From: Sandeep Paulraj <s-paulraj@ti.com>

Adds "DaVinci-EMAC" as the name of the device so that
it gets printed as "Using DaVinci-EMAC device"
during network access (dhcp, tftp) instead of empty name
in "Using" statement.This name also gets
reflected in 'ethact' env variable.

Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This pacth has been in an internal TI tree for a long time.
Sending this patch to the list to sync up.
 drivers/net/davinci_emac.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index 9371d96..9390480 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -667,6 +667,7 @@  int davinci_emac_initialize(void)
 		return -1;
 	memset(dev, 0, sizeof *dev);
+	sprintf(dev->name, "DaVinci-EMAC");
 	dev->iobase = 0;
 	dev->init = davinci_eth_open;