treewide: Add SPDX license identifier for more missed files
[linux-2.6-block.git] / drivers / net / ethernet / xilinx / ll_temac_main.c
index 997475c209c0da05d762b900a916b4ffdafad830..14870d659f7d36b67c0dc9a8a9c1765da1061378 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Driver for Xilinx TEMAC Ethernet device
  *
@@ -361,7 +362,7 @@ static void temac_do_set_mac_address(struct net_device *ndev)
 
 static int temac_init_mac_address(struct net_device *ndev, const void *address)
 {
-       memcpy(ndev->dev_addr, address, ETH_ALEN);
+       ether_addr_copy(ndev->dev_addr, address);
        if (!is_valid_ether_addr(ndev->dev_addr))
                eth_hw_addr_random(ndev);
        temac_do_set_mac_address(ndev);