aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamachi.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-09-13 14:30:00 -0400
committerJeff Garzik <jeff@garzik.org>2006-09-13 14:30:00 -0400
commit7282d491ecaee9883233a0e27283c4c79486279a (patch)
tree172ffa70716f5493db57976ceef7652120b3332f /drivers/net/hamachi.c
parent76fd85937097a0c2ec8ab23bf21dc10992d1c398 (diff)
drivers/net: const-ify ethtool_ops declarations
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/hamachi.c')
-rw-r--r--drivers/net/hamachi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c
index a860c81e4d87..b59bab9e9792 100644
--- a/drivers/net/hamachi.c
+++ b/drivers/net/hamachi.c
@@ -563,8 +563,8 @@ static void hamachi_error(struct net_device *dev, int intr_status);
563static int hamachi_close(struct net_device *dev); 563static int hamachi_close(struct net_device *dev);
564static struct net_device_stats *hamachi_get_stats(struct net_device *dev); 564static struct net_device_stats *hamachi_get_stats(struct net_device *dev);
565static void set_rx_mode(struct net_device *dev); 565static void set_rx_mode(struct net_device *dev);
566static struct ethtool_ops ethtool_ops; 566static const struct ethtool_ops ethtool_ops;
567static struct ethtool_ops ethtool_ops_no_mii; 567static const struct ethtool_ops ethtool_ops_no_mii;
568 568
569static int __devinit hamachi_init_one (struct pci_dev *pdev, 569static int __devinit hamachi_init_one (struct pci_dev *pdev,
570 const struct pci_device_id *ent) 570 const struct pci_device_id *ent)
@@ -1919,7 +1919,7 @@ static u32 hamachi_get_link(struct net_device *dev)
1919 return mii_link_ok(&np->mii_if); 1919 return mii_link_ok(&np->mii_if);
1920} 1920}
1921 1921
1922static struct ethtool_ops ethtool_ops = { 1922static const struct ethtool_ops ethtool_ops = {
1923 .begin = check_if_running, 1923 .begin = check_if_running,
1924 .get_drvinfo = hamachi_get_drvinfo, 1924 .get_drvinfo = hamachi_get_drvinfo,
1925 .get_settings = hamachi_get_settings, 1925 .get_settings = hamachi_get_settings,
@@ -1928,7 +1928,7 @@ static struct ethtool_ops ethtool_ops = {
1928 .get_link = hamachi_get_link, 1928 .get_link = hamachi_get_link,
1929}; 1929};
1930 1930
1931static struct ethtool_ops ethtool_ops_no_mii = { 1931static const struct ethtool_ops ethtool_ops_no_mii = {
1932 .begin = check_if_running, 1932 .begin = check_if_running,
1933 .get_drvinfo = hamachi_get_drvinfo, 1933 .get_drvinfo = hamachi_get_drvinfo,
1934}; 1934};