summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Paulraj <s-paulraj@ti.com>2010-12-28 14:42:27 -0500
committerAlbert Aribaud <albert.aribaud@free.fr>2011-02-02 00:54:44 +0100
commit2a7d603f37de94cb8529c67a35e71906f3c66dce (patch)
tree557b4bae69ecd47581893fe4b82b98ee01b18c1c
parent4b9b9e7c665bfcff43bc720b579b6b03a5078736 (diff)
downloadu-boot-imx-2a7d603f37de94cb8529c67a35e71906f3c66dce.zip
u-boot-imx-2a7d603f37de94cb8529c67a35e71906f3c66dce.tar.gz
u-boot-imx-2a7d603f37de94cb8529c67a35e71906f3c66dce.tar.bz2
DaVinci EMAC: Add name to Ethernet device
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>
-rw-r--r--drivers/net/davinci_emac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index 2642a5a..2067a54 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;