usbnet: make ethtool_ops const
The ethtool_ops table of function pointers should be const. Fix all the usb network drivers. 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

vanhempi
3969eb3859
commit
bc689c9788
@@ -420,7 +420,7 @@ static u32 ipheth_ethtool_op_get_link(struct net_device *net)
|
||||
return netif_carrier_ok(dev->net);
|
||||
}
|
||||
|
||||
static struct ethtool_ops ops = {
|
||||
static const struct ethtool_ops ops = {
|
||||
.get_link = ipheth_ethtool_op_get_link
|
||||
};
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user