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>
このコミットが含まれているのは:
Dale Farnsworth
2007-03-01 16:31:48 -07:00
committed by Jeff Garzik
コミット 5ada386bad
5個のファイルの変更12行の追加44行の削除

ファイルの表示

@@ -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)