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>
This commit is contained in:
Родитель
2fa3888bb7
Коммит
097f024454
|
@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb,
|
||||||
is_meta);
|
is_meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dsa_device_ops sja1105_netdev_ops = {
|
static const struct dsa_device_ops sja1105_netdev_ops = {
|
||||||
.name = "sja1105",
|
.name = "sja1105",
|
||||||
.proto = DSA_TAG_PROTO_SJA1105,
|
.proto = DSA_TAG_PROTO_SJA1105,
|
||||||
.xmit = sja1105_xmit,
|
.xmit = sja1105_xmit,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче