diff options
Diffstat (limited to 'drivers/net/yellowfin.c')
-rw-r--r-- | drivers/net/yellowfin.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/net/yellowfin.c b/drivers/net/yellowfin.c index a4c4953f1365..2412ce4917f2 100644 --- a/drivers/net/yellowfin.c +++ b/drivers/net/yellowfin.c | |||
@@ -350,7 +350,7 @@ static void yellowfin_timer(unsigned long data); | |||
350 | static void yellowfin_tx_timeout(struct net_device *dev); | 350 | static void yellowfin_tx_timeout(struct net_device *dev); |
351 | static void yellowfin_init_ring(struct net_device *dev); | 351 | static void yellowfin_init_ring(struct net_device *dev); |
352 | static int yellowfin_start_xmit(struct sk_buff *skb, struct net_device *dev); | 352 | static int yellowfin_start_xmit(struct sk_buff *skb, struct net_device *dev); |
353 | static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance, struct pt_regs *regs); | 353 | static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance); |
354 | static int yellowfin_rx(struct net_device *dev); | 354 | static int yellowfin_rx(struct net_device *dev); |
355 | static void yellowfin_error(struct net_device *dev, int intr_status); | 355 | static void yellowfin_error(struct net_device *dev, int intr_status); |
356 | static int yellowfin_close(struct net_device *dev); | 356 | static int yellowfin_close(struct net_device *dev); |
@@ -888,7 +888,7 @@ static int yellowfin_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
888 | 888 | ||
889 | /* The interrupt handler does all of the Rx thread work and cleans up | 889 | /* The interrupt handler does all of the Rx thread work and cleans up |
890 | after the Tx thread. */ | 890 | after the Tx thread. */ |
891 | static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance, struct pt_regs *regs) | 891 | static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance) |
892 | { | 892 | { |
893 | struct net_device *dev = dev_instance; | 893 | struct net_device *dev = dev_instance; |
894 | struct yellowfin_private *yp; | 894 | struct yellowfin_private *yp; |
@@ -896,13 +896,6 @@ static irqreturn_t yellowfin_interrupt(int irq, void *dev_instance, struct pt_re | |||
896 | int boguscnt = max_interrupt_work; | 896 | int boguscnt = max_interrupt_work; |
897 | unsigned int handled = 0; | 897 | unsigned int handled = 0; |
898 | 898 | ||
899 | #ifndef final_version /* Can never occur. */ | ||
900 | if (dev == NULL) { | ||
901 | printk (KERN_ERR "yellowfin_interrupt(): irq %d for unknown device.\n", irq); | ||
902 | return IRQ_NONE; | ||
903 | } | ||
904 | #endif | ||
905 | |||
906 | yp = netdev_priv(dev); | 899 | yp = netdev_priv(dev); |
907 | ioaddr = yp->base; | 900 | ioaddr = yp->base; |
908 | 901 | ||