Browse Source

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>
Sandeep Paulraj 14 năm trước cách đây
mục cha
commit
2a7d603f37
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/net/davinci_emac.c

+ 1 - 0
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;