netdev: drivers should make ethtool_ops const
No need to put ethtool_ops in data, they should be const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
daf09de817
commit
0fc0b732ea
@@ -356,7 +356,7 @@ static int dm9601_ioctl(struct net_device *net, struct ifreq *rq, int cmd)
|
||||
return generic_mii_ioctl(&dev->mii, if_mii(rq), cmd, NULL);
|
||||
}
|
||||
|
||||
static struct ethtool_ops dm9601_ethtool_ops = {
|
||||
static const struct ethtool_ops dm9601_ethtool_ops = {
|
||||
.get_drvinfo = dm9601_get_drvinfo,
|
||||
.get_link = dm9601_get_link,
|
||||
.get_msglevel = usbnet_get_msglevel,
|
||||
|
Reference in New Issue
Block a user