diff options
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 93cd1f4bfcf2..7ac599410978 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -1124,7 +1124,7 @@ static void rtl8169_get_strings(struct net_device *dev, u32 stringset, u8 *data) | |||
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | 1126 | ||
1127 | static struct ethtool_ops rtl8169_ethtool_ops = { | 1127 | static const struct ethtool_ops rtl8169_ethtool_ops = { |
1128 | .get_drvinfo = rtl8169_get_drvinfo, | 1128 | .get_drvinfo = rtl8169_get_drvinfo, |
1129 | .get_regs_len = rtl8169_get_regs_len, | 1129 | .get_regs_len = rtl8169_get_regs_len, |
1130 | .get_link = ethtool_op_get_link, | 1130 | .get_link = ethtool_op_get_link, |
@@ -2913,7 +2913,7 @@ static struct pci_driver rtl8169_pci_driver = { | |||
2913 | static int __init | 2913 | static int __init |
2914 | rtl8169_init_module(void) | 2914 | rtl8169_init_module(void) |
2915 | { | 2915 | { |
2916 | return pci_module_init(&rtl8169_pci_driver); | 2916 | return pci_register_driver(&rtl8169_pci_driver); |
2917 | } | 2917 | } |
2918 | 2918 | ||
2919 | static void __exit | 2919 | static void __exit |