Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ethernet: s2io: use eth_hw_addr_set()

Manual conversions because we need to get to the member
which is inside an array to have a u8 pointer which
eth_hw_addr_set() expects.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
1235568b 47d71f45

+1 -1
+1 -1
drivers/net/ethernet/neterion/s2io.c
··· 7954 7954 7955 7955 /* Set the factory defined MAC address initially */ 7956 7956 dev->addr_len = ETH_ALEN; 7957 - memcpy(dev->dev_addr, sp->def_mac_addr, ETH_ALEN); 7957 + eth_hw_addr_set(dev, sp->def_mac_addr[0].mac_addr); 7958 7958 7959 7959 /* initialize number of multicast & unicast MAC entries variables */ 7960 7960 if (sp->device_type == XFRAME_I_DEVICE) {