]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
DaVinci EMAC: Add name to Ethernet device
authorSandeep Paulraj <s-paulraj@ti.com>
Tue, 28 Dec 2010 19:42:27 +0000 (14:42 -0500)
committerAlbert Aribaud <albert.aribaud@free.fr>
Tue, 1 Feb 2011 23:54:44 +0000 (00:54 +0100)
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>
drivers/net/davinci_emac.c

index 2642a5aaf0d71738697a0c9231f7cad96bb1eb71..2067a54a88f0e87e21659112e101d86e710977ff 100644 (file)
@@ -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;