]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - drivers/net/fm/memac_phy.c
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / drivers / net / fm / memac_phy.c
index 4ab78e6c253e0e1a8665711b5f0899f01768e66f..c2ef1b4e737ecd8dc9112ce7596b922e51a55ea7 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2012 Freescale Semiconductor, Inc.
  *     Andy Fleming <afleming@gmail.com>
  *     Roy Zang <tie-fei.zang@freescale.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  * Some part is taken from tsec.c
  */
 #include <common.h>
@@ -146,7 +145,7 @@ int fm_memac_mdio_init(bd_t *bis, struct memac_mdio_info *info)
        bus->read = memac_mdio_read;
        bus->write = memac_mdio_write;
        bus->reset = memac_mdio_reset;
-       sprintf(bus->name, info->name);
+       strcpy(bus->name, info->name);
 
        bus->priv = info->regs;