summaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-04-28 13:37:21 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-28 19:41:01 -0400
commitf81a43e8da07ccd91c4d923a44ffffaeee39dcc8 (patch)
treedfe12e87e6f7faca811278e1e63321ff05847b90 /net/dsa/dsa.c
parent3675617531443a503f674e71e70248b9c5a205cd (diff)
dsa: Cleanup unneeded table and make tag structures static
Now that tag drivers dynamically register, we don't need the static table. Remove it. This also means the tag driver structures can be made static. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 67d21647c500..ba04c78633be 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -46,41 +46,6 @@ static const struct dsa_device_ops none_ops = {
46 46
47DSA_TAG_DRIVER(none_ops); 47DSA_TAG_DRIVER(none_ops);
48 48
49const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = {
50#ifdef CONFIG_NET_DSA_TAG_BRCM
51 [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops,
52#endif
53#ifdef CONFIG_NET_DSA_TAG_BRCM_PREPEND
54 [DSA_TAG_PROTO_BRCM_PREPEND] = &brcm_prepend_netdev_ops,
55#endif
56#ifdef CONFIG_NET_DSA_TAG_DSA
57 [DSA_TAG_PROTO_DSA] = &dsa_netdev_ops,
58#endif
59#ifdef CONFIG_NET_DSA_TAG_EDSA
60 [DSA_TAG_PROTO_EDSA] = &edsa_netdev_ops,
61#endif
62#ifdef CONFIG_NET_DSA_TAG_GSWIP
63 [DSA_TAG_PROTO_GSWIP] = &gswip_netdev_ops,
64#endif
65#ifdef CONFIG_NET_DSA_TAG_KSZ9477
66 [DSA_TAG_PROTO_KSZ9477] = &ksz9477_netdev_ops,
67 [DSA_TAG_PROTO_KSZ9893] = &ksz9893_netdev_ops,
68#endif
69#ifdef CONFIG_NET_DSA_TAG_LAN9303
70 [DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops,
71#endif
72#ifdef CONFIG_NET_DSA_TAG_MTK
73 [DSA_TAG_PROTO_MTK] = &mtk_netdev_ops,
74#endif
75#ifdef CONFIG_NET_DSA_TAG_QCA
76 [DSA_TAG_PROTO_QCA] = &qca_netdev_ops,
77#endif
78#ifdef CONFIG_NET_DSA_TAG_TRAILER
79 [DSA_TAG_PROTO_TRAILER] = &trailer_netdev_ops,
80#endif
81 [DSA_TAG_PROTO_NONE] = &none_ops,
82};
83
84static void dsa_tag_driver_register(struct dsa_tag_driver *dsa_tag_driver, 49static void dsa_tag_driver_register(struct dsa_tag_driver *dsa_tag_driver,
85 struct module *owner) 50 struct module *owner)
86{ 51{