summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-04-15 11:18:20 +0800
committerJoe Hershberger <joe.hershberger@ni.com>2015-04-20 17:57:13 -0500
commit523bb66f5a8e2cee22535e509c4e762bbc774406 (patch)
tree7195d7f0038e353d400cc224eb8f57a5bcbff79a
parent9ce1edc8d0d8d994b09ed01d1ec5815967ad9ac8 (diff)
downloadu-boot-imx-523bb66f5a8e2cee22535e509c4e762bbc774406.zip
u-boot-imx-523bb66f5a8e2cee22535e509c4e762bbc774406.tar.gz
u-boot-imx-523bb66f5a8e2cee22535e509c4e762bbc774406.tar.bz2
net: pch_gbe: Fix pch_gbe device name
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>
-rw-r--r--drivers/net/pch_gbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c
index 15c9cdc..a03bdc0 100644
--- a/drivers/net/pch_gbe.c
+++ b/drivers/net/pch_gbe.c
@@ -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);