ethernet: use eth_hw_addr_set() instead of ether_addr_copy()
[sfrench/cifs-2.6.git] / drivers / net / ethernet / faraday / ftgmac100.c
index ff76e401a014bbdd32a497fc5b7ecff1168802a9..ab926722557369fa4d7002d408f32e163cbc756a 100644 (file)
@@ -186,7 +186,7 @@ static void ftgmac100_initial_mac(struct ftgmac100 *priv)
 
        addr = device_get_mac_address(priv->dev, mac, ETH_ALEN);
        if (addr) {
-               ether_addr_copy(priv->netdev->dev_addr, mac);
+               eth_hw_addr_set(priv->netdev, mac);
                dev_info(priv->dev, "Read MAC address %pM from device tree\n",
                         mac);
                return;
@@ -203,7 +203,7 @@ static void ftgmac100_initial_mac(struct ftgmac100 *priv)
        mac[5] = l & 0xff;
 
        if (is_valid_ether_addr(mac)) {
-               ether_addr_copy(priv->netdev->dev_addr, mac);
+               eth_hw_addr_set(priv->netdev, mac);
                dev_info(priv->dev, "Read MAC address %pM from chip\n", mac);
        } else {
                eth_hw_addr_random(priv->netdev);