From: Mike Frysinger Date: Thu, 10 Jun 2010 01:50:48 +0000 (-0400) Subject: Blackfin: bfin_mac: remove space from name X-Git-Tag: v2010.09-rc1~82^2~3^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94060a158f6c67ccd10d90e262e25349bb8cc9dc;p=u-boot Blackfin: bfin_mac: remove space from name Some commands (like 'mii') use this name to select devices, but they break when those names contain spaces. So drop the space from the Blackfin EMAC driver. Signed-off-by: Mike Frysinger --- diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index ee4ad6cdf8..e691bdf211 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c @@ -99,7 +99,7 @@ int bfin_EMAC_initialize(bd_t *bis) hang(); memset(dev, 0, sizeof(*dev)); - sprintf(dev->name, "Blackfin EMAC"); + strcpy(dev->name, "bfin_mac"); dev->iobase = 0; dev->priv = 0;