提交 82369c09 编写于 作者: W Wolfgang Denk

net 52xx: fix ethernet device names with spaces

Some commands (like 'mii') use this name to select devices, but they
break when those names contain spaces. So drop the space from
Ethernet driver names (cf. commit 1384f3bb).
Signed-off-by: NWolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
上级 cdb74977
...@@ -913,7 +913,7 @@ int mpc5xxx_fec_initialize(bd_t * bis) ...@@ -913,7 +913,7 @@ int mpc5xxx_fec_initialize(bd_t * bis)
dev->send = mpc5xxx_fec_send; dev->send = mpc5xxx_fec_send;
dev->recv = mpc5xxx_fec_recv; dev->recv = mpc5xxx_fec_recv;
sprintf(dev->name, "FEC ETHERNET"); sprintf(dev->name, "FEC");
eth_register(dev); eth_register(dev);
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册