Skip to content

Commit 097f024

Browse files
ffainellidavem330
authored andcommitted
net: dsa: tag_sja1105: Constify dsa_device_ops
sja1105_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 2fa3888 commit 097f024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/dsa/tag_sja1105.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb,
304304
is_meta);
305305
}
306306

307-
static struct dsa_device_ops sja1105_netdev_ops = {
307+
static const struct dsa_device_ops sja1105_netdev_ops = {
308308
.name = "sja1105",
309309
.proto = DSA_TAG_PROTO_SJA1105,
310310
.xmit = sja1105_xmit,

0 commit comments

Comments
 (0)