aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/tile/tilegx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/tile/tilegx.c')
-rw-r--r--drivers/net/ethernet/tile/tilegx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c
index 13e6fff8ca23..628b736e5ae7 100644
--- a/drivers/net/ethernet/tile/tilegx.c
+++ b/drivers/net/ethernet/tile/tilegx.c
@@ -2230,7 +2230,7 @@ static void tile_net_dev_init(const char *name, const uint8_t *mac)
2230 nz_addr |= mac[i]; 2230 nz_addr |= mac[i];
2231 2231
2232 if (nz_addr) { 2232 if (nz_addr) {
2233 memcpy(dev->dev_addr, mac, 6); 2233 memcpy(dev->dev_addr, mac, ETH_ALEN);
2234 dev->addr_len = 6; 2234 dev->addr_len = 6;
2235 } else { 2235 } else {
2236 eth_hw_addr_random(dev); 2236 eth_hw_addr_random(dev);