summaryrefslogtreecommitdiff
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-06-20 13:14:02 -0400
committerDavid S. Miller <davem@davemloft.net>2016-06-21 03:58:29 -0400
commitb7e66a5fad73cb0f118471e6ca8aeed3447915dc (patch)
tree37c7632161e3ad9f703785f7985576b8004c1a3f /drivers/net/bonding
parent1d35f0b2c3fcc8a0c1fd93aba02520c940c0b855 (diff)
net: dsa: mv88e6xxx: add switch register helpers
The mixed assignments, allocations and registrations in the probe code make it hard to follow the logic and figure out what is DSA or chip specific. Extract the struct dsa_switch related code in a simple mv88e6xxx_register_switch helper function. For symmetry in the code, add a mv88e6xxx_unregister_switch function. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions