Skip to content

Commit 2fa3888

Browse files
ffainellidavem330
authored andcommitted
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>
1 parent 9b1b31d commit 2fa3888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/dsa/tag_ocelot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb,
228228
return skb;
229229
}
230230

231-
static struct dsa_device_ops ocelot_netdev_ops = {
231+
static const struct dsa_device_ops ocelot_netdev_ops = {
232232
.name = "ocelot",
233233
.proto = DSA_TAG_PROTO_OCELOT,
234234
.xmit = ocelot_xmit,

0 commit comments

Comments
 (0)