ethernet: use eth_hw_addr_set() instead of ether_addr_copy()
[linux-2.6-microblaze.git] / drivers / net / ethernet / agere / et131x.c
index 9206331..f4edc61 100644 (file)
@@ -3863,7 +3863,7 @@ static int et131x_change_mtu(struct net_device *netdev, int new_mtu)
 
        et131x_init_send(adapter);
        et131x_hwaddr_init(adapter);
-       ether_addr_copy(netdev->dev_addr, adapter->addr);
+       eth_hw_addr_set(netdev, adapter->addr);
 
        /* Init the device with the new settings */
        et131x_adapter_setup(adapter);
@@ -3966,7 +3966,7 @@ static int et131x_pci_setup(struct pci_dev *pdev,
 
        netif_napi_add(netdev, &adapter->napi, et131x_poll, 64);
 
-       ether_addr_copy(netdev->dev_addr, adapter->addr);
+       eth_hw_addr_set(netdev, adapter->addr);
 
        rc = -ENOMEM;