diff options
Diffstat (limited to 'drivers/net/via-rhine.c')
-rw-r--r-- | drivers/net/via-rhine.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index 66547159bfd9..cbebf1b96e9d 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
@@ -30,8 +30,8 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #define DRV_NAME "via-rhine" | 32 | #define DRV_NAME "via-rhine" |
33 | #define DRV_VERSION "1.4.1" | 33 | #define DRV_VERSION "1.4.2" |
34 | #define DRV_RELDATE "July-24-2006" | 34 | #define DRV_RELDATE "Sept-11-2006" |
35 | 35 | ||
36 | 36 | ||
37 | /* A few user-configurable values. | 37 | /* A few user-configurable values. |
@@ -411,7 +411,7 @@ static void rhine_error(struct net_device *dev, int intr_status); | |||
411 | static void rhine_set_rx_mode(struct net_device *dev); | 411 | static void rhine_set_rx_mode(struct net_device *dev); |
412 | static struct net_device_stats *rhine_get_stats(struct net_device *dev); | 412 | static struct net_device_stats *rhine_get_stats(struct net_device *dev); |
413 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 413 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
414 | static struct ethtool_ops netdev_ethtool_ops; | 414 | static const struct ethtool_ops netdev_ethtool_ops; |
415 | static int rhine_close(struct net_device *dev); | 415 | static int rhine_close(struct net_device *dev); |
416 | static void rhine_shutdown (struct pci_dev *pdev); | 416 | static void rhine_shutdown (struct pci_dev *pdev); |
417 | 417 | ||
@@ -1679,9 +1679,6 @@ static void rhine_set_rx_mode(struct net_device *dev) | |||
1679 | u8 rx_mode; /* Note: 0x02=accept runt, 0x01=accept errs */ | 1679 | u8 rx_mode; /* Note: 0x02=accept runt, 0x01=accept errs */ |
1680 | 1680 | ||
1681 | if (dev->flags & IFF_PROMISC) { /* Set promiscuous. */ | 1681 | if (dev->flags & IFF_PROMISC) { /* Set promiscuous. */ |
1682 | /* Unconditionally log net taps. */ | ||
1683 | printk(KERN_NOTICE "%s: Promiscuous mode enabled.\n", | ||
1684 | dev->name); | ||
1685 | rx_mode = 0x1C; | 1682 | rx_mode = 0x1C; |
1686 | iowrite32(0xffffffff, ioaddr + MulticastFilter0); | 1683 | iowrite32(0xffffffff, ioaddr + MulticastFilter0); |
1687 | iowrite32(0xffffffff, ioaddr + MulticastFilter1); | 1684 | iowrite32(0xffffffff, ioaddr + MulticastFilter1); |
@@ -1799,7 +1796,7 @@ static int rhine_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
1799 | return 0; | 1796 | return 0; |
1800 | } | 1797 | } |
1801 | 1798 | ||
1802 | static struct ethtool_ops netdev_ethtool_ops = { | 1799 | static const struct ethtool_ops netdev_ethtool_ops = { |
1803 | .get_drvinfo = netdev_get_drvinfo, | 1800 | .get_drvinfo = netdev_get_drvinfo, |
1804 | .get_settings = netdev_get_settings, | 1801 | .get_settings = netdev_get_settings, |
1805 | .set_settings = netdev_set_settings, | 1802 | .set_settings = netdev_set_settings, |
@@ -2005,7 +2002,7 @@ static int __init rhine_init(void) | |||
2005 | #ifdef MODULE | 2002 | #ifdef MODULE |
2006 | printk(version); | 2003 | printk(version); |
2007 | #endif | 2004 | #endif |
2008 | return pci_module_init(&rhine_driver); | 2005 | return pci_register_driver(&rhine_driver); |
2009 | } | 2006 | } |
2010 | 2007 | ||
2011 | 2008 | ||