Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75320
b: refs/heads/master
c: edba2a1
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Bogendoerfer authored and David S. Miller committed Jan 9, 2008
1 parent e0ea136 commit 78e0863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 9a262d5c24c63d2b7bea05e41d9b3bfbef63e903
refs/heads/master: edba2a1fefc6296bc527754dee1c72a625bb675a
10 changes: 7 additions & 3 deletions trunk/drivers/net/meth.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,14 @@ static inline void load_eaddr(struct net_device *dev)
{
int i;
DECLARE_MAC_BUF(mac);
u64 macaddr;

for (i = 0; i < 6; i++)
dev->dev_addr[i] = o2meth_eaddr[i];
DPRINTK("Loading MAC Address: %s\n", print_mac(mac, dev->dev_addr));
mace->eth.mac_addr = (*(unsigned long*)o2meth_eaddr) >> 16;
macaddr = 0;
for (i = 0; i < 6; i++)
macaddr |= dev->dev_addr[i] << ((5 - i) * 8);

mace->eth.mac_addr = macaddr;
}

/*
Expand Down Expand Up @@ -794,6 +797,7 @@ static int __init meth_probe(struct platform_device *pdev)
#endif
dev->irq = MACE_ETHERNET_IRQ;
dev->base_addr = (unsigned long)&mace->eth;
memcpy(dev->dev_addr, o2meth_eaddr, 6);

priv = netdev_priv(dev);
spin_lock_init(&priv->meth_lock);
Expand Down

0 comments on commit 78e0863

Please sign in to comment.