Staging: rtl8192e: Remove cast in request_irq
authorMike McCormack <mikem@ring3k.org>
Mon, 27 Dec 2010 12:51:09 +0000 (21:51 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 00:14:10 +0000 (16:14 -0800)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E_core.c

index cc391ee2bf22e0c059107dcd2367dd0fd8feb0bd..541d83d279e328252eb834abfac766acad18adc3 100644 (file)
@@ -2913,11 +2913,7 @@ static short rtl8192_init(struct net_device *dev)
        init_timer(&priv->watch_dog_timer);
        priv->watch_dog_timer.data = (unsigned long)dev;
        priv->watch_dog_timer.function = watch_dog_timer_callback;
-#if defined(IRQF_SHARED)
-        if(request_irq(dev->irq, (void*)rtl8192_interrupt, IRQF_SHARED, dev->name, dev)){
-#else
-        if(request_irq(dev->irq, (void *)rtl8192_interrupt, SA_SHIRQ, dev->name, dev)){
-#endif
+        if (request_irq(dev->irq, rtl8192_interrupt, IRQF_SHARED, dev->name, dev)) {
                printk("Error allocating IRQ %d",dev->irq);
                return -1;
        }else{