aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/au1000_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/amd/au1000_eth.c')
-rw-r--r--drivers/net/ethernet/amd/au1000_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index 91d52b495848..427c148bb643 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -1138,7 +1138,7 @@ static int au1000_probe(struct platform_device *pdev)
1138 aup->phy1_search_mac0 = 1; 1138 aup->phy1_search_mac0 = 1;
1139 } else { 1139 } else {
1140 if (is_valid_ether_addr(pd->mac)) { 1140 if (is_valid_ether_addr(pd->mac)) {
1141 memcpy(dev->dev_addr, pd->mac, 6); 1141 memcpy(dev->dev_addr, pd->mac, ETH_ALEN);
1142 } else { 1142 } else {
1143 /* Set a random MAC since no valid provided by platform_data. */ 1143 /* Set a random MAC since no valid provided by platform_data. */
1144 eth_hw_addr_random(dev); 1144 eth_hw_addr_random(dev);