From: Michael Chan Date: Wed, 14 Dec 2005 05:09:54 +0000 (-0800) Subject: [TG3]: Fix 5704 single-port mode X-Git-Tag: v2.6.15-rc6~66^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16fe9d74f14ed74af778c5db7f9129e29916f4a7;p=pandora-kernel.git [TG3]: Fix 5704 single-port mode If the dual-port 5704 is configured as a single-port device with only one PCI function, it would trigger a BUG() condition in tg3_find_5704_peer(). This fixes the problem by returning its own pdev if the peer cannot be found. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed