diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-29 05:46:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:40 -0500 |
commit | 28fc1f5a0c375cb6375fa48e9a8b393f2a189be6 (patch) | |
tree | 95b3b517b02dd46ff0fc2728c1e70de8d6f78ed3 /drivers/net/eexpress.c | |
parent | 1b36efe07f83ecf50eddd431d067c7bf86318e87 (diff) |
[netdrvr] irq handler minor cleanups in several drivers
* use irq_handler_t where appropriate
* no need to use 'irq' function arg, its already stored in a data struct
* rename irq handler 'irq' argument to 'dummy', where the function
has been analyzed and proven not to use its first argument.
* remove always-false "dev_id == NULL" test from irq handlers
* remove pointless casts from void*
* declance: irq argument is not const
* add KERN_xxx printk prefix
* fix minor whitespace weirdness
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/eexpress.c')
-rw-r--r-- | drivers/net/eexpress.c | 11 |
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 | ||
771 | static irqreturn_t eexp_irq(int irq, void *dev_info) | 772 | static 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); |