]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net 52xx: fix ethernet device names with spaces
authorWolfgang Denk <wd@denx.de>
Thu, 5 Aug 2010 19:31:54 +0000 (21:31 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 5 Aug 2010 19:31:54 +0000 (21:31 +0200)
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: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
drivers/net/mpc5xxx_fec.c

index 1681e267243587af8e1516132ec30dea5903a507..4a1c8e6e42e95f467dde7e61ddc06a9cab78af58 100644 (file)
@@ -913,7 +913,7 @@ int mpc5xxx_fec_initialize(bd_t * bis)
        dev->send = mpc5xxx_fec_send;
        dev->recv = mpc5xxx_fec_recv;
 
-       sprintf(dev->name, "FEC ETHERNET");
+       sprintf(dev->name, "FEC");
        eth_register(dev);
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)