net: dsa: ocelot: Constify dsa_device_ops
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 11 May 2020 23:47:14 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2020 23:50:45 +0000 (16:50 -0700)
ocelot_netdev_ops should be const since that is what the DSA layer
expects.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_ocelot.c

index 59de131..b0c98ee 100644 (file)
@@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb,
        return skb;
 }
 
-static struct dsa_device_ops ocelot_netdev_ops = {
+static const struct dsa_device_ops ocelot_netdev_ops = {
        .name                   = "ocelot",
        .proto                  = DSA_TAG_PROTO_OCELOT,
        .xmit                   = ocelot_xmit,