diff options
Diffstat (limited to 'drivers/net/chelsio')
-rw-r--r-- | drivers/net/chelsio/cxgb2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c index e67872433e92..5f1b06753462 100644 --- a/drivers/net/chelsio/cxgb2.c +++ b/drivers/net/chelsio/cxgb2.c | |||
@@ -779,7 +779,7 @@ static int get_eeprom(struct net_device *dev, struct ethtool_eeprom *e, | |||
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |
781 | 781 | ||
782 | static struct ethtool_ops t1_ethtool_ops = { | 782 | static const struct ethtool_ops t1_ethtool_ops = { |
783 | .get_settings = get_settings, | 783 | .get_settings = get_settings, |
784 | .set_settings = set_settings, | 784 | .set_settings = set_settings, |
785 | .get_drvinfo = get_drvinfo, | 785 | .get_drvinfo = get_drvinfo, |
@@ -1243,7 +1243,7 @@ static struct pci_driver driver = { | |||
1243 | 1243 | ||
1244 | static int __init t1_init_module(void) | 1244 | static int __init t1_init_module(void) |
1245 | { | 1245 | { |
1246 | return pci_module_init(&driver); | 1246 | return pci_register_driver(&driver); |
1247 | } | 1247 | } |
1248 | 1248 | ||
1249 | static void __exit t1_cleanup_module(void) | 1249 | static void __exit t1_cleanup_module(void) |