]> git.sur5r.net Git - u-boot/commitdiff
net: pch_gbe: Fix pch_gbe device name
authorBin Meng <bmeng.cn@gmail.com>
Wed, 15 Apr 2015 03:18:20 +0000 (11:18 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 20 Apr 2015 22:57:13 +0000 (17:57 -0500)
The name "pch_gbe.%x" exceeds the limit of the name in the
'struct eth_device'. Rename it as just "pch_gbe".

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/net/pch_gbe.c

index 15c9cdcc3a0aafc32656b31b83f2903cdf3b84a2..a03bdc06300fde51293a30baa930c0697306f28b 100644 (file)
@@ -446,7 +446,7 @@ int pch_gbe_register(bd_t *bis)
        dev->iobase = iobase;
        priv->mac_regs = (struct pch_gbe_regs *)iobase;
 
-       sprintf(dev->name, "pch_gbe.%x", iobase);
+       sprintf(dev->name, "pch_gbe");
 
        /* Read MAC address from SROM and initialize dev->enetaddr with it */
        pch_gbe_mac_read(priv->mac_regs, dev->enetaddr);