net: pch_gbe: Convert to use DM PCI API
[oweals/u-boot.git] / drivers / net / tsec.c
index 025e7a76f1262876d8aec7819e6a62831a51f31c..be0f38288f3dd1806c86dc6f2da87cf676df3dd0 100644 (file)
@@ -710,7 +710,7 @@ static int tsec_initialize(bd_t *bis, struct tsec_info_struct *tsec_info)
        priv->tbiaddr = CONFIG_SYS_TBIPA_VALUE;
        priv->flags = tsec_info->flags;
 
-       sprintf(dev->name, tsec_info->devname);
+       strcpy(dev->name, tsec_info->devname);
        priv->interface = tsec_info->interface;
        priv->bus = miiphy_get_dev_by_name(tsec_info->mii_devname);
        priv->dev = dev;