bonding: initialize before registration
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 12 Jun 2009 19:02:45 +0000 (19:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Jun 2009 06:28:52 +0000 (23:28 -0700)
commitd93216051ae60995736518ca9ebb58a0e6ade212
tree0f2e6c6d4abef68b54fb58a6397376871a277f91
parentd2991f75354941a4cdf61ce7443d21804b978f89
bonding: initialize before registration

Avoid a unnecessary carrier state transistion that happens when device
is registered.
Lockdep works better if initialization is done before registration as well.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c