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 <dale@farnsworth.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
このコミットが含まれているのは:
@@ -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)
|
||||
|
新しいイシューから参照
ユーザーをブロックする