From: Sandeep Paulraj Date: Tue, 28 Dec 2010 19:42:27 +0000 (-0500) Subject: DaVinci EMAC: Add name to Ethernet device X-Git-Tag: v2011.03-rc1~2^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a7d603f37de94cb8529c67a35e71906f3c66dce;p=oweals%2Fu-boot.git 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 Signed-off-by: Sandeep Paulraj --- diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 2642a5aaf0..2067a54a88 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;