diff options
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index e46da1e8f98e..33dc6f2418f2 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -2735,6 +2735,11 @@ static int sh_eth_drv_probe(struct platform_device *pdev) | |||
2735 | 2735 | ||
2736 | /* read and set MAC address */ | 2736 | /* read and set MAC address */ |
2737 | read_mac_address(ndev, pd->mac_addr); | 2737 | read_mac_address(ndev, pd->mac_addr); |
2738 | if (!is_valid_ether_addr(ndev->dev_addr)) { | ||
2739 | dev_warn(&pdev->dev, | ||
2740 | "no valid MAC address supplied, using a random one.\n"); | ||
2741 | eth_hw_addr_random(ndev); | ||
2742 | } | ||
2738 | 2743 | ||
2739 | /* ioremap the TSU registers */ | 2744 | /* ioremap the TSU registers */ |
2740 | if (mdp->cd->tsu) { | 2745 | if (mdp->cd->tsu) { |