commit | c86e59b9e63659bb7fc2ba1781aabe2f37aaf10b | [log] [tgz] |
---|---|---|
author | Florian Fainelli <f.fainelli@gmail.com> | Thu Mar 05 12:35:08 2015 -0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 06 00:18:20 2015 -0500 |
tree | 9b62ef1646e406ee2a7d70fb2fdcf8de782c3e4d | |
parent | 59299031038f3ea92cf484bc4a68d16ad4bb3050 [diff] |
net: dsa: extract dsa switch tree setup and removal Extract the core logic that setups a 'struct dsa_switch_tree' and removes it, update dsa_probe() and dsa_remove() to use the two helper functions. This will be useful to allow for other callers to setup this structure differently. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>