mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mv643xx_eth: move mac_addr inside mv643xx_eth_platform_data
The information contained within platform_data should be self-contained. Replace the pointer to a MAC address with the actual MAC address in struct mv643xx_eth_platform_data. Signed-off-by: Dale Farnsworth <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
471a567144
commit
5ada386bad
5 changed files with 12 additions and 44 deletions
|
|
@ -1380,7 +1380,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
|
|||
|
||||
pd = pdev->dev.platform_data;
|
||||
if (pd) {
|
||||
if (pd->mac_addr)
|
||||
if (is_valid_ether_addr(pd->mac_addr))
|
||||
memcpy(dev->dev_addr, pd->mac_addr, 6);
|
||||
|
||||
if (pd->phy_addr || pd->force_phy_addr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue