From: Mike Kofron Date: Mon, 12 Sep 2016 18:23:31 +0000 (-0400) Subject: staging: netlogic: Make net_device_ops const X-Git-Tag: v4.9-rc1~119^2~619 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8b70d6961f03483a7c9db9aecba2c3b3b467cce2;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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,