Improve type handling in interrupt handlers

This improves typechecking of interrupt handlers by removing
unnecessary (void *) casts and storing handlers in correctly-typed
variables.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Ash Willis <ashwillis@programmer.net>
Cc: linux-pcmcia@lists.infradead.org
---
 drivers/net/eth16i.c |    3 ++-
 drivers/net/ewrk3.c  |    2 +-
 include/pcmcia/cs.h  |    3 ++-
 sound/pci/als300.c   |    2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff -r f0da5cfe672a drivers/net/eth16i.c
--- a/drivers/net/eth16i.c	Sun Apr 20 05:46:52 2008 +1000
+++ b/drivers/net/eth16i.c	Sun Apr 20 05:51:15 2008 +1000
@@ -529,7 +529,8 @@ static int __init eth16i_probe1(struct n
 
 	/* Try to obtain interrupt vector */
 
-	if ((retval = request_irq(dev->irq, (void *)&eth16i_interrupt, 0, cardname, dev))) {
+	retval = request_irq(dev->irq, eth16i_interrupt, 0, cardname, dev);
+	if (retval) {
 		printk(KERN_WARNING "%s at %#3x, but is unusable due to conflicting IRQ %d.\n",
 		       cardname, ioaddr, dev->irq);
 		goto out;
diff -r f0da5cfe672a drivers/net/ewrk3.c
--- a/drivers/net/ewrk3.c	Sun Apr 20 05:46:52 2008 +1000
+++ b/drivers/net/ewrk3.c	Sun Apr 20 05:51:15 2008 +1000
@@ -635,7 +635,7 @@ static int ewrk3_open(struct net_device 
 	STOP_EWRK3;
 
 	if (!lp->hard_strapped) {
-		if (request_irq(dev->irq, (void *) ewrk3_interrupt, 0, "ewrk3", dev)) {
+		if (request_irq(dev->irq, ewrk3_interrupt, 0, "ewrk3", dev)) {
 			printk("ewrk3_open(): Requested IRQ%d is busy\n", dev->irq);
 			status = -EAGAIN;
 		} else {
diff -r f0da5cfe672a include/pcmcia/cs.h
--- a/include/pcmcia/cs.h	Sun Apr 20 05:46:52 2008 +1000
+++ b/include/pcmcia/cs.h	Sun Apr 20 05:51:15 2008 +1000
@@ -14,6 +14,7 @@
 
 #ifndef _LINUX_CS_H
 #define _LINUX_CS_H
+#include <linux/interrupt.h>
 
 /* For AccessConfigurationRegister */
 typedef struct conf_reg_t {
@@ -170,7 +171,7 @@ typedef struct irq_req_t {
     u_int	Attributes;
     u_int	AssignedIRQ;
     u_int	IRQInfo1, IRQInfo2; /* IRQInfo2 is ignored */
-    void	*Handler;
+    irq_handler_t Handler;
     void	*Instance;
 } irq_req_t;
 
diff -r f0da5cfe672a sound/pci/als300.c
--- a/sound/pci/als300.c	Sun Apr 20 05:46:52 2008 +1000
+++ b/sound/pci/als300.c	Sun Apr 20 05:51:15 2008 +1000
@@ -677,7 +677,7 @@ static int __devinit snd_als300_create(s
 				       struct snd_als300 **rchip)
 {
 	struct snd_als300 *chip;
-	void *irq_handler;
+	irq_handler_t irq_handler;
 	int err;
 
 	static struct snd_device_ops ops = {
