diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-04-12 12:45:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-17 11:03:17 -0400 |
commit | a6a71f19fe5e05a90e0bd2487b87aba60a7bfbe0 (patch) | |
tree | da822224ba07033b3f2db1ee0583af313cab755e /net/dsa/dsa_priv.h | |
parent | 6b6cbc1471676402565e958674523d06213b82d7 (diff) |
net: dsa: isolate legacy code
This patch moves as is the legacy DSA code from dsa.c to legacy.c,
except the few shared symbols which remain in dsa.c.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index 107138a55bd8..ab397c07880f 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -55,6 +55,10 @@ const struct dsa_device_ops *dsa_resolve_tag_protocol(int tag_protocol); int dsa_cpu_port_ethtool_setup(struct dsa_switch *ds); void dsa_cpu_port_ethtool_restore(struct dsa_switch *ds); +/* legacy.c */ +int dsa_legacy_register(void); +void dsa_legacy_unregister(void); + /* slave.c */ extern const struct dsa_device_ops notag_netdev_ops; void dsa_slave_mii_bus_init(struct dsa_switch *ds); |