diff options
Diffstat (limited to 'drivers/net/eepro.c')
-rw-r--r-- | drivers/net/eepro.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c index e70f172699d..09ff9b9418f 100644 --- a/drivers/net/eepro.c +++ b/drivers/net/eepro.c | |||
@@ -154,7 +154,7 @@ static const char version[] = | |||
154 | #include <asm/dma.h> | 154 | #include <asm/dma.h> |
155 | 155 | ||
156 | #define DRV_NAME "eepro" | 156 | #define DRV_NAME "eepro" |
157 | #define DRV_VERSION "0.13b" | 157 | #define DRV_VERSION "0.13c" |
158 | 158 | ||
159 | #define compat_dev_kfree_skb( skb, mode ) dev_kfree_skb( (skb) ) | 159 | #define compat_dev_kfree_skb( skb, mode ) dev_kfree_skb( (skb) ) |
160 | /* I had reports of looong delays with SLOW_DOWN defined as udelay(2) */ | 160 | /* I had reports of looong delays with SLOW_DOWN defined as udelay(2) */ |
@@ -743,7 +743,7 @@ static void __init eepro_print_info (struct net_device *dev) | |||
743 | printEEPROMInfo(dev); | 743 | printEEPROMInfo(dev); |
744 | } | 744 | } |
745 | 745 | ||
746 | static struct ethtool_ops eepro_ethtool_ops; | 746 | static const struct ethtool_ops eepro_ethtool_ops; |
747 | 747 | ||
748 | /* This is the real probe routine. Linux has a history of friendly device | 748 | /* This is the real probe routine. Linux has a history of friendly device |
749 | probes on the ISA bus. A good device probe avoids doing writes, and | 749 | probes on the ISA bus. A good device probe avoids doing writes, and |
@@ -920,7 +920,7 @@ static int eepro_grab_irq(struct net_device *dev) | |||
920 | 920 | ||
921 | eepro_sw2bank0(ioaddr); /* Switch back to Bank 0 */ | 921 | eepro_sw2bank0(ioaddr); /* Switch back to Bank 0 */ |
922 | 922 | ||
923 | if (request_irq (*irqp, NULL, SA_SHIRQ, "bogus", dev) != EBUSY) { | 923 | if (request_irq (*irqp, NULL, IRQF_SHARED, "bogus", dev) != EBUSY) { |
924 | unsigned long irq_mask; | 924 | unsigned long irq_mask; |
925 | /* Twinkle the interrupt, and check if it's seen */ | 925 | /* Twinkle the interrupt, and check if it's seen */ |
926 | irq_mask = probe_irq_on(); | 926 | irq_mask = probe_irq_on(); |
@@ -1333,7 +1333,6 @@ set_multicast_list(struct net_device *dev) | |||
1333 | mode = inb(ioaddr + REG3); | 1333 | mode = inb(ioaddr + REG3); |
1334 | outb(mode, ioaddr + REG3); /* writing reg. 3 to complete the update */ | 1334 | outb(mode, ioaddr + REG3); /* writing reg. 3 to complete the update */ |
1335 | eepro_sw2bank0(ioaddr); /* Return to BANK 0 now */ | 1335 | eepro_sw2bank0(ioaddr); /* Return to BANK 0 now */ |
1336 | printk(KERN_INFO "%s: promiscuous mode enabled.\n", dev->name); | ||
1337 | } | 1336 | } |
1338 | 1337 | ||
1339 | else if (dev->mc_count==0 ) | 1338 | else if (dev->mc_count==0 ) |
@@ -1772,7 +1771,7 @@ static void eepro_ethtool_get_drvinfo(struct net_device *dev, | |||
1772 | sprintf(drvinfo->bus_info, "ISA 0x%lx", dev->base_addr); | 1771 | sprintf(drvinfo->bus_info, "ISA 0x%lx", dev->base_addr); |
1773 | } | 1772 | } |
1774 | 1773 | ||
1775 | static struct ethtool_ops eepro_ethtool_ops = { | 1774 | static const struct ethtool_ops eepro_ethtool_ops = { |
1776 | .get_settings = eepro_ethtool_get_settings, | 1775 | .get_settings = eepro_ethtool_get_settings, |
1777 | .get_drvinfo = eepro_ethtool_get_drvinfo, | 1776 | .get_drvinfo = eepro_ethtool_get_drvinfo, |
1778 | }; | 1777 | }; |
@@ -1807,8 +1806,7 @@ MODULE_PARM_DESC(irq, "EtherExpress Pro/10 IRQ number(s)"); | |||
1807 | MODULE_PARM_DESC(mem, "EtherExpress Pro/10 Rx buffer size(es) in kB (3-29)"); | 1806 | MODULE_PARM_DESC(mem, "EtherExpress Pro/10 Rx buffer size(es) in kB (3-29)"); |
1808 | MODULE_PARM_DESC(autodetect, "EtherExpress Pro/10 force board(s) detection (0-1)"); | 1807 | MODULE_PARM_DESC(autodetect, "EtherExpress Pro/10 force board(s) detection (0-1)"); |
1809 | 1808 | ||
1810 | int | 1809 | int __init init_module(void) |
1811 | init_module(void) | ||
1812 | { | 1810 | { |
1813 | struct net_device *dev; | 1811 | struct net_device *dev; |
1814 | int i; | 1812 | int i; |