]> Pileus Git - ~andy/linux/commit
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)
commit857001f06f6bec17cafd567a03b24968902a4744
tree84d64791dbeee5c5c4c71087c05007b6f2f4bd88
parentc86a8560e2dd800b619056c25b3f0ab8f5c59156
tg3: Improve PCI function number detection.

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>
drivers/net/ethernet/broadcom/tg3.c