net: dsa: ocelot: Constify dsa_device_ops
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>
This commit is contained in:
parent
9b1b31d5d4
commit
2fa3888bb7
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue