diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-01-04 16:59:49 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-05 22:23:00 +0400 |
commit | 9b07be4b2a78166bc54c8eedf18da8a8aafacfab (patch) | |
tree | 6a1e70a5777befcd2ed840f0a8d24f6477309987 /drivers/net/ethernet/freescale | |
parent | c8b88efc3047063f98eba26d8d08d9a6b968c73a (diff) | |
download | linux-9b07be4b2a78166bc54c8eedf18da8a8aafacfab.tar.xz |
net: make ethtool_ops const
Auditing all usage of ethtool_ops found several drivers that
are not declaring the struct const when it should be.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index b0b04453c7cc..20c2e3f3e18a 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c @@ -1152,7 +1152,7 @@ static void fec_enet_get_drvinfo(struct net_device *ndev, strcpy(info->bus_info, dev_name(&ndev->dev)); } -static struct ethtool_ops fec_enet_ethtool_ops = { +static const struct ethtool_ops fec_enet_ethtool_ops = { .get_settings = fec_enet_get_settings, .set_settings = fec_enet_set_settings, .get_drvinfo = fec_enet_get_drvinfo, |