]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tsn: Fix build.
authorDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 13:56:22 +0000 (13:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 13:56:22 +0000 (13:56 +0000)
Due to const dev_addr changes.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/engleder/tsnep_main.c

index c965744e9530d8b390b1dbdefe537e9e612160ae..6a7feb24589a7b8ac24eb80e9e151eb40f51da54 100644 (file)
@@ -1004,7 +1004,7 @@ static int tsnep_netdev_set_mac_address(struct net_device *netdev, void *addr)
        retval = eth_prepare_mac_addr_change(netdev, sock_addr);
        if (retval)
                return retval;
-       ether_addr_copy(netdev->dev_addr, sock_addr->sa_data);
+       dev_set_mac_address(netdev, sock_addr, NULL);
        tsnep_mac_set_address(adapter, sock_addr->sa_data);
 
        return 0;
@@ -1051,7 +1051,7 @@ static int tsnep_mac_init(struct tsnep_adapter *adapter)
        }
 
        tsnep_mac_set_address(adapter, adapter->mac_address);
-       ether_addr_copy(adapter->netdev->dev_addr, adapter->mac_address);
+       eth_hw_addr_set(adapter->netdev, adapter->mac_address);
 
        return 0;
 }