diff options
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8851_mll.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851_mll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c index 075f4e21d33d..c83d16dc7cd5 100644 --- a/drivers/net/ethernet/micrel/ks8851_mll.c +++ b/drivers/net/ethernet/micrel/ks8851_mll.c | |||
@@ -1248,7 +1248,7 @@ static void ks_set_mac(struct ks_net *ks, u8 *data) | |||
1248 | w = ((u & 0xFF) << 8) | ((u >> 8) & 0xFF); | 1248 | w = ((u & 0xFF) << 8) | ((u >> 8) & 0xFF); |
1249 | ks_wrreg16(ks, KS_MARL, w); | 1249 | ks_wrreg16(ks, KS_MARL, w); |
1250 | 1250 | ||
1251 | memcpy(ks->mac_addr, data, 6); | 1251 | memcpy(ks->mac_addr, data, ETH_ALEN); |
1252 | 1252 | ||
1253 | if (ks->enabled) | 1253 | if (ks->enabled) |
1254 | ks_start_rx(ks); | 1254 | ks_start_rx(ks); |
@@ -1651,7 +1651,7 @@ static int ks8851_probe(struct platform_device *pdev) | |||
1651 | } | 1651 | } |
1652 | netdev_info(netdev, "Mac address is: %pM\n", ks->mac_addr); | 1652 | netdev_info(netdev, "Mac address is: %pM\n", ks->mac_addr); |
1653 | 1653 | ||
1654 | memcpy(netdev->dev_addr, ks->mac_addr, 6); | 1654 | memcpy(netdev->dev_addr, ks->mac_addr, ETH_ALEN); |
1655 | 1655 | ||
1656 | ks_set_mac(ks, netdev->dev_addr); | 1656 | ks_set_mac(ks, netdev->dev_addr); |
1657 | 1657 | ||