aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/via-rhine.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 13:15:13 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 13:15:13 -0400
commita319a2773a13bab56a0d0b3744ba8703324313b5 (patch)
treef02c86acabd1031439fd422a167784007e84ebb1 /drivers/net/via-rhine.c
parente18fa700c9a31360bc8f193aa543b7ef7b39a06b (diff)
parent183798799216fad36c7219fe8d4d6dee6b8fa755 (diff)
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits) net/ieee80211: fix more crypto-related build breakage [PATCH] Spidernet: add ethtool -S (show statistics) [NET] GT96100: Delete bitrotting ethernet driver [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM [PATCH] Cirrus Logic ep93xx ethernet driver r8169: the MMIO region of the 8167 stands behin BAR#1 e1000, ixgb: Remove pointless wrappers [PATCH] Remove powerpc specific parts of 3c509 driver [PATCH] s2io: Switch to pci_get_device [PATCH] gt96100: move to pci_get_device API [PATCH] ehea: bugfix for register access functions [PATCH] e1000 disable device on PCI error drivers/net/phy/fixed: #if 0 some incomplete code drivers/net: const-ify ethtool_ops declarations [PATCH] ethtool: allow const ethtool_ops [PATCH] sky2: big endian [PATCH] sky2: fiber support [PATCH] sky2: tx pause bug fix drivers/net: Trim trailing whitespace [PATCH] ehea: IBM eHEA Ethernet Device Driver ... Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 that just happened to be next to unrelated changes in this update.
Diffstat (limited to 'drivers/net/via-rhine.c')
-rw-r--r--drivers/net/via-rhine.c13
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);
411static void rhine_set_rx_mode(struct net_device *dev); 411static void rhine_set_rx_mode(struct net_device *dev);
412static struct net_device_stats *rhine_get_stats(struct net_device *dev); 412static struct net_device_stats *rhine_get_stats(struct net_device *dev);
413static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 413static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
414static struct ethtool_ops netdev_ethtool_ops; 414static const struct ethtool_ops netdev_ethtool_ops;
415static int rhine_close(struct net_device *dev); 415static int rhine_close(struct net_device *dev);
416static void rhine_shutdown (struct pci_dev *pdev); 416static 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
1802static struct ethtool_ops netdev_ethtool_ops = { 1799static 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