staging: wilc1000: isr_bh_routine: use wilc instead of g_linux_wlan
authorGlen Lee <glen.lee@atmel.com>
Tue, 27 Oct 2015 09:27:38 +0000 (18:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:08:47 +0000 (08:08 +0900)
Use netdev private data member wilc instead of g_linux_wlan.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index 324cc5720bb1cb7b6818b6c5ca4ec46461b369f9..7d0d7229a23130059f27039ae5433e4a1d423235 100644 (file)
@@ -248,8 +248,14 @@ static irqreturn_t isr_uh_routine(int irq, void *user_data)
 
 irqreturn_t isr_bh_routine(int irq, void *userdata)
 {
+       perInterface_wlan_t *nic;
+       struct wilc *wilc;
+
+       nic = netdev_priv(userdata);
+       wilc = nic->wilc;
+
        /*While mac is closing cacncel the handling of any interrupts received*/
-       if (g_linux_wlan->close) {
+       if (wilc->close) {
                PRINT_ER("Driver is CLOSING: Can't handle BH interrupt\n");
                return IRQ_HANDLED;
        }