tg3: Consilidate MAC loopback code
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 19 Aug 2011 13:58:20 +0000 (13:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2011 17:34:27 +0000 (10:34 -0700)
commit6e01b20b21d6b2131f27a7c068ff71a7fbe58796
treeb3340fc55b3263fd36de9ba9e24aa18b3727765a
parent2215e24ceb74b701c34b2ebe7cdc96e5509ac565
tg3: Consilidate MAC loopback code

The driver puts the device into MAC loopback in two places in the
driver.  This patch consolidates the code into a single routine.

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