[TG3]: Fix peer device handling
authorMichael Chan <mchan@broadcom.com>
Tue, 20 Dec 2005 00:26:02 +0000 (16:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2005 00:26:02 +0000 (16:26 -0800)
commit8c2dc7e1e7213c55f1b97eba09de6c0cee9ad12f
tree47bc9b91cc44c68701004494bb9dc9d777ba27a4
parentdf7addbb45874f0f992266003155de5a22e1872f
[TG3]: Fix peer device handling

Locate the pdev_peer for dual port 5714 NIC devices in addition to
5704 devices. The name is also changed to tg3_find_peer() from
tg3_find_5704_peer(). It is also necessary to call netdev_priv() to
get to the peer's private tg3 structure.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c