diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-11 03:56:12 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-11 03:56:12 -0400 |
commit | 24fcbacedb0d83cabc6761acbecfbf751265ce52 (patch) | |
tree | 7147b206304b028c3cfd5de6317e5c8510098ca9 /drivers/net/3c509.c | |
parent | 2f614fe04f4463ff22234133319067d7361f54e5 (diff) | |
parent | 53a5fbdc2dff55161a206ed1a1385a8fa8055c34 (diff) |
Merge branch 'master' into upstream-fixes
Diffstat (limited to 'drivers/net/3c509.c')
-rw-r--r-- | drivers/net/3c509.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/3c509.c b/drivers/net/3c509.c index b936373ab2a5..f791bf026e51 100644 --- a/drivers/net/3c509.c +++ b/drivers/net/3c509.c | |||
@@ -191,7 +191,7 @@ static ushort id_read_eeprom(int index); | |||
191 | static ushort read_eeprom(int ioaddr, int index); | 191 | static ushort read_eeprom(int ioaddr, int index); |
192 | static int el3_open(struct net_device *dev); | 192 | static int el3_open(struct net_device *dev); |
193 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev); | 193 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev); |
194 | static irqreturn_t el3_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 194 | static irqreturn_t el3_interrupt(int irq, void *dev_id); |
195 | static void update_stats(struct net_device *dev); | 195 | static void update_stats(struct net_device *dev); |
196 | static struct net_device_stats *el3_get_stats(struct net_device *dev); | 196 | static struct net_device_stats *el3_get_stats(struct net_device *dev); |
197 | static int el3_rx(struct net_device *dev); | 197 | static int el3_rx(struct net_device *dev); |
@@ -910,18 +910,13 @@ el3_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
910 | 910 | ||
911 | /* The EL3 interrupt handler. */ | 911 | /* The EL3 interrupt handler. */ |
912 | static irqreturn_t | 912 | static irqreturn_t |
913 | el3_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 913 | el3_interrupt(int irq, void *dev_id) |
914 | { | 914 | { |
915 | struct net_device *dev = (struct net_device *)dev_id; | 915 | struct net_device *dev = dev_id; |
916 | struct el3_private *lp; | 916 | struct el3_private *lp; |
917 | int ioaddr, status; | 917 | int ioaddr, status; |
918 | int i = max_interrupt_work; | 918 | int i = max_interrupt_work; |
919 | 919 | ||
920 | if (dev == NULL) { | ||
921 | printk ("el3_interrupt(): irq %d for unknown device.\n", irq); | ||
922 | return IRQ_NONE; | ||
923 | } | ||
924 | |||
925 | lp = netdev_priv(dev); | 920 | lp = netdev_priv(dev); |
926 | spin_lock(&lp->lock); | 921 | spin_lock(&lp->lock); |
927 | 922 | ||
@@ -1006,7 +1001,7 @@ el3_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
1006 | static void el3_poll_controller(struct net_device *dev) | 1001 | static void el3_poll_controller(struct net_device *dev) |
1007 | { | 1002 | { |
1008 | disable_irq(dev->irq); | 1003 | disable_irq(dev->irq); |
1009 | el3_interrupt(dev->irq, dev, NULL); | 1004 | el3_interrupt(dev->irq, dev); |
1010 | enable_irq(dev->irq); | 1005 | enable_irq(dev->irq); |
1011 | } | 1006 | } |
1012 | #endif | 1007 | #endif |