Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368822
b: refs/heads/master
c: be0e2f1
h: refs/heads/master
v: v3
  • Loading branch information
Guenter Roeck authored and David S. Miller committed Apr 2, 2013
1 parent bffc89d commit c74f2ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c5f7808efd7efc27be0f3c102f2a631ad6f038c
refs/heads/master: be0e2f1f7d2fb6c49ea29a4f8274b36537c34dba
2 changes: 0 additions & 2 deletions trunk/drivers/net/ethernet/nxp/lpc_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,13 +1432,11 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
/* Get MAC address from current HW setting (POR state is all zeros) */
__lpc_get_mac(pldat, ndev->dev_addr);

#ifdef CONFIG_OF_NET
if (!is_valid_ether_addr(ndev->dev_addr)) {
const char *macaddr = of_get_mac_address(pdev->dev.of_node);
if (macaddr)
memcpy(ndev->dev_addr, macaddr, ETH_ALEN);
}
#endif
if (!is_valid_ether_addr(ndev->dev_addr))
eth_hw_addr_random(ndev);

Expand Down

0 comments on commit c74f2ca

Please sign in to comment.