mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue