diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/wiznet/w5100.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/wiznet/w5100.c b/drivers/net/ethernet/wiznet/w5100.c index a5826a3111a6..2c08bf6e7bf3 100644 --- a/drivers/net/ethernet/wiznet/w5100.c +++ b/drivers/net/ethernet/wiznet/w5100.c | |||
@@ -637,8 +637,7 @@ static int __devinit w5100_hw_probe(struct platform_device *pdev) | |||
637 | if (data && is_valid_ether_addr(data->mac_addr)) { | 637 | if (data && is_valid_ether_addr(data->mac_addr)) { |
638 | memcpy(ndev->dev_addr, data->mac_addr, ETH_ALEN); | 638 | memcpy(ndev->dev_addr, data->mac_addr, ETH_ALEN); |
639 | } else { | 639 | } else { |
640 | eth_random_addr(ndev->dev_addr); | 640 | eth_hw_addr_random(ndev); |
641 | ndev->addr_assign_type |= NET_ADDR_RANDOM; | ||
642 | } | 641 | } |
643 | 642 | ||
644 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 643 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |