diff options
author | David S. Miller <davem@davemloft.net> | 2021-11-22 13:56:22 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-22 13:56:22 +0000 |
commit | 4dfb9982644b5bf7672fc6a0b51cf87503832b7e (patch) | |
tree | 907fdd380d09e858485fce6e5411ed6e83ea8ef7 | |
parent | 00ef32565b9bd03c63ed944bc27878fbbc1c4e0a (diff) | |
download | linux-stable-4dfb9982644b5bf7672fc6a0b51cf87503832b7e.tar.gz linux-stable-4dfb9982644b5bf7672fc6a0b51cf87503832b7e.tar.bz2 linux-stable-4dfb9982644b5bf7672fc6a0b51cf87503832b7e.zip |
tsn: Fix build.
Due to const dev_addr changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/engleder/tsnep_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index c965744e9530..6a7feb24589a 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -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; } |