diff options
-rw-r--r-- | drivers/net/dm9000.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 2d4c4fc1d900..c30935587207 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c | |||
@@ -1592,10 +1592,15 @@ dm9000_probe(struct platform_device *pdev) | |||
1592 | ndev->dev_addr[i] = ior(db, i+DM9000_PAR); | 1592 | ndev->dev_addr[i] = ior(db, i+DM9000_PAR); |
1593 | } | 1593 | } |
1594 | 1594 | ||
1595 | if (!is_valid_ether_addr(ndev->dev_addr)) | 1595 | if (!is_valid_ether_addr(ndev->dev_addr)) { |
1596 | dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please " | 1596 | dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please " |
1597 | "set using ifconfig\n", ndev->name); | 1597 | "set using ifconfig\n", ndev->name); |
1598 | 1598 | ||
1599 | random_ether_addr(ndev->dev_addr); | ||
1600 | mac_src = "random"; | ||
1601 | } | ||
1602 | |||
1603 | |||
1599 | platform_set_drvdata(pdev, ndev); | 1604 | platform_set_drvdata(pdev, ndev); |
1600 | ret = register_netdev(ndev); | 1605 | ret = register_netdev(ndev); |
1601 | 1606 | ||