cnic: Refine registration with bnx2.
authorMichael Chan <mchan@broadcom.com>
Fri, 14 Aug 2009 15:49:44 +0000 (15:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Aug 2009 01:50:43 +0000 (18:50 -0700)
commita3059b12adae868c42629ecf058a94195ef1e958
treed736fb5260aaf71d36d8b066b04db00135c4e605
parent64c6460875957502541a4ba30835ac625a0bee79
cnic: Refine registration with bnx2.

Register and unregister with bnx2 during NETDEV_UP and NETDEV_DOWN
events.  This simplifies the sequence of events and allows locking
fixes in the next patch.

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