aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eexpress.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/eexpress.c')
-rw-r--r--drivers/net/eexpress.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c
index 70509ed6c11d..8969c3b6d443 100644
--- a/drivers/net/eexpress.c
+++ b/drivers/net/eexpress.c
@@ -456,8 +456,9 @@ static int eexp_open(struct net_device *dev)
456 if (!dev->irq || !irqrmap[dev->irq]) 456 if (!dev->irq || !irqrmap[dev->irq])
457 return -ENXIO; 457 return -ENXIO;
458 458
459 ret = request_irq(dev->irq,&eexp_irq,0,dev->name,dev); 459 ret = request_irq(dev->irq, &eexp_irq, 0, dev->name, dev);
460 if (ret) return ret; 460 if (ret)
461 return ret;
461 462
462 if (!request_region(ioaddr, EEXP_IO_EXTENT, "EtherExpress")) { 463 if (!request_region(ioaddr, EEXP_IO_EXTENT, "EtherExpress")) {
463 printk(KERN_WARNING "EtherExpress io port %x, is busy.\n" 464 printk(KERN_WARNING "EtherExpress io port %x, is busy.\n"
@@ -768,7 +769,7 @@ static void eexp_cmd_clear(struct net_device *dev)
768 } 769 }
769} 770}
770 771
771static irqreturn_t eexp_irq(int irq, void *dev_info) 772static irqreturn_t eexp_irq(int dummy, void *dev_info)
772{ 773{
773 struct net_device *dev = dev_info; 774 struct net_device *dev = dev_info;
774 struct net_local *lp; 775 struct net_local *lp;
@@ -783,7 +784,7 @@ static irqreturn_t eexp_irq(int irq, void *dev_info)
783 old_read_ptr = inw(ioaddr+READ_PTR); 784 old_read_ptr = inw(ioaddr+READ_PTR);
784 old_write_ptr = inw(ioaddr+WRITE_PTR); 785 old_write_ptr = inw(ioaddr+WRITE_PTR);
785 786
786 outb(SIRQ_dis|irqrmap[irq],ioaddr+SET_IRQ); 787 outb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
787 788
788 789
789 status = scb_status(dev); 790 status = scb_status(dev);
@@ -851,7 +852,7 @@ static irqreturn_t eexp_irq(int irq, void *dev_info)
851 852
852 eexp_cmd_clear(dev); 853 eexp_cmd_clear(dev);
853 854
854 outb(SIRQ_en|irqrmap[irq],ioaddr+SET_IRQ); 855 outb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
855 856
856#if NET_DEBUG > 6 857#if NET_DEBUG > 6
857 printk("%s: leaving eexp_irq()\n", dev->name); 858 printk("%s: leaving eexp_irq()\n", dev->name);