tg3: Improve PCI function number detection.
authorMichael Chan <mchan@broadcom.com>
Sun, 6 Jan 2013 12:51:09 +0000 (12:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2013 05:02:08 +0000 (21:02 -0800)
Simplify the code to detect PCI function number on 5717, 5719, and 5720.
If shared memory does not have proper signature, read the function number
from register directly.

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

No differences found