diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 3e045a695dbc..be2ddbb6ef56 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -1380,7 +1380,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev) | |||
1380 | 1380 | ||
1381 | pd = pdev->dev.platform_data; | 1381 | pd = pdev->dev.platform_data; |
1382 | if (pd) { | 1382 | if (pd) { |
1383 | if (pd->mac_addr) | 1383 | if (is_valid_ether_addr(pd->mac_addr)) |
1384 | memcpy(dev->dev_addr, pd->mac_addr, 6); | 1384 | memcpy(dev->dev_addr, pd->mac_addr, 6); |
1385 | 1385 | ||
1386 | if (pd->phy_addr || pd->force_phy_addr) | 1386 | if (pd->phy_addr || pd->force_phy_addr) |