tg3: Consolidate autoneg advertisement setup code
authorMatt Carlson <mcarlson@broadcom.com>
Thu, 19 May 2011 12:12:49 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2011 22:00:00 +0000 (18:00 -0400)
commit42b64a450b81ec9e8cdd5b3fb13613ab9bb25048
treef7e12d489f81d6acf0d4b1e0ac693abcb5643fdf
parentb0c5943f1ca4df6c1c451ef6be5287a161d29a9d
tg3: Consolidate autoneg advertisement setup code

Autonegotiation setup has gotten a little more complicated since the tg3
driver was created.  This patch consolidates autoneg setup into one
routine and modifies the call sites accordingly.

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