Commit f18bba50 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

dsa: Add MODULE_LICENSE to tag drivers

All the tag drivers are some variant of GPL. Add a MODULE_LICENSE()
indicating this, so the drivers can later be compiled as modules.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b42f033
...@@ -201,4 +201,5 @@ const struct dsa_device_ops brcm_prepend_netdev_ops = { ...@@ -201,4 +201,5 @@ const struct dsa_device_ops brcm_prepend_netdev_ops = {
}; };
#endif #endif
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_BRCM_PREPEND); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_BRCM_PREPEND);
...@@ -158,4 +158,5 @@ const struct dsa_device_ops dsa_netdev_ops = { ...@@ -158,4 +158,5 @@ const struct dsa_device_ops dsa_netdev_ops = {
.overhead = DSA_HLEN, .overhead = DSA_HLEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_DSA); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_DSA);
...@@ -177,4 +177,5 @@ const struct dsa_device_ops edsa_netdev_ops = { ...@@ -177,4 +177,5 @@ const struct dsa_device_ops edsa_netdev_ops = {
.overhead = EDSA_HLEN, .overhead = EDSA_HLEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_EDSA); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_EDSA);
...@@ -110,4 +110,5 @@ const struct dsa_device_ops gswip_netdev_ops = { ...@@ -110,4 +110,5 @@ const struct dsa_device_ops gswip_netdev_ops = {
.overhead = GSWIP_RX_HEADER_LEN, .overhead = GSWIP_RX_HEADER_LEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_GSWIP); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_GSWIP);
...@@ -176,4 +176,5 @@ const struct dsa_device_ops ksz9893_netdev_ops = { ...@@ -176,4 +176,5 @@ const struct dsa_device_ops ksz9893_netdev_ops = {
.overhead = KSZ_INGRESS_TAG_LEN, .overhead = KSZ_INGRESS_TAG_LEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_KSZ9893); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_KSZ9893);
...@@ -135,4 +135,5 @@ const struct dsa_device_ops lan9303_netdev_ops = { ...@@ -135,4 +135,5 @@ const struct dsa_device_ops lan9303_netdev_ops = {
.overhead = LAN9303_TAG_LEN, .overhead = LAN9303_TAG_LEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_LAN9303); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_LAN9303);
...@@ -106,4 +106,5 @@ const struct dsa_device_ops mtk_netdev_ops = { ...@@ -106,4 +106,5 @@ const struct dsa_device_ops mtk_netdev_ops = {
.overhead = MTK_HDR_LEN, .overhead = MTK_HDR_LEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_MTK); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_MTK);
...@@ -107,4 +107,5 @@ const struct dsa_device_ops qca_netdev_ops = { ...@@ -107,4 +107,5 @@ const struct dsa_device_ops qca_netdev_ops = {
.overhead = QCA_HDR_LEN, .overhead = QCA_HDR_LEN,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_QCA); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_QCA);
...@@ -84,4 +84,5 @@ const struct dsa_device_ops trailer_netdev_ops = { ...@@ -84,4 +84,5 @@ const struct dsa_device_ops trailer_netdev_ops = {
.overhead = 4, .overhead = 4,
}; };
MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_TRAILER); MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_TRAILER);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment