diff options
author | Mike Kofron <mpkofron@gmail.com> | 2016-09-12 14:23:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-13 15:01:29 +0200 |
commit | 8b70d6961f03483a7c9db9aecba2c3b3b467cce2 (patch) | |
tree | 3bf633cb9791ecf36e128bc170c5ccdb06b67045 /drivers/staging/netlogic | |
parent | b8a7b474672321c7f0550620b32cd676501c3506 (diff) | |
download | linux-8b70d6961f03483a7c9db9aecba2c3b3b467cce2.tar.bz2 |
staging: netlogic: Make net_device_ops const
This patch fixes the checkpatch.pl warning:
WARNING: struct net_device_ops should normally be const
Signed-off-by: Mike Kofron <mpkofron@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/netlogic')
-rw-r--r-- | drivers/staging/netlogic/xlr_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index 595ac1b9be05..7db88aafbd8f 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -413,7 +413,7 @@ static struct rtnl_link_stats64 *xlr_get_stats64(struct net_device *ndev, return stats; } -static struct net_device_ops xlr_netdev_ops = { +static const struct net_device_ops xlr_netdev_ops = { .ndo_open = xlr_net_open, .ndo_stop = xlr_net_stop, .ndo_start_xmit = xlr_net_start_xmit, |