mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-10 11:17:18 +01:00
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>
This commit is contained in:
parent
9ce1edc8d0
commit
523bb66f5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue