tg3: Refine tg3_vlan_rx_register()
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:23:56 +0000 (14:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:33 +0000 (23:16 -0800)
commit844b3eed8a9efffa4225c811b989c8ff41691a78
treecc796ec6d31cbcc19d636ebc2ff36d9f68b999e6
parent7e5856bd9644e2299adbf5d0a8916f9cc56f1f36
tg3: Refine tg3_vlan_rx_register()

tg3_vlan_rx_register() touches the hardware if netif_running() returns
false.  This patch fixes the problem.

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