diff options
author | Glen Lee <glen.lee@atmel.com> | 2015-10-27 09:27:38 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 23:08:47 (GMT) |
commit | 2e7933d0e79ab84f37389893ce66c35567d9bf6e (patch) | |
tree | 0fc6473c73bfe80c59cddfdb061b707b30b6f903 /drivers/staging | |
parent | 3948362d56e5f0ca29f597e75e8b09d6dd8edfd4 (diff) | |
download | linux-2e7933d0e79ab84f37389893ce66c35567d9bf6e.tar.xz |
staging: wilc1000: isr_bh_routine: use wilc instead of g_linux_wlan
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 324cc57..7d0d722 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -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; } |