staging: rtl8192e: Remove struct member irq_mask
authorMike McCormack <mikem@ring3k.org>
Sun, 20 Feb 2011 15:05:19 +0000 (00:05 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:10:10 +0000 (14:10 -0800)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E.h
drivers/staging/rtl8192e/r8192E_core.c

index 03306869620c9931091503435bbb8a23ead118da..220f2b11424e2aa2f9213d40f493f3effc47d764 100644 (file)
@@ -810,7 +810,6 @@ typedef struct r8192_priv
         struct mutex mutex;
        spinlock_t ps_lock;
 
-       u32 irq_mask;
        short chan;
        short sens;
        /* RX stuff */
index 9a88f49d4fffc872b1a6234d9595cdbdb76e9fcb..8f68ac07b5675ad3fafd3881016ecd0c1a890261 100644 (file)
@@ -617,7 +617,14 @@ static void tx_timeout(struct net_device *dev)
 static void rtl8192_irq_enable(struct net_device *dev)
 {
        struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
-       write_nic_dword(priv, INTA_MASK, priv->irq_mask);
+       u32 mask;
+
+       mask = IMR_ROK | IMR_VODOK | IMR_VIDOK | IMR_BEDOK | IMR_BKDOK |
+              IMR_HCCADOK | IMR_MGNTDOK | IMR_COMDOK | IMR_HIGHDOK |
+              IMR_BDOK | IMR_RXCMDOK | IMR_TIMEOUT0 | IMR_RDU | IMR_RXFOVW |
+              IMR_TXFOVW | IMR_BcnInt | IMR_TBDOK | IMR_TBDER;
+
+       write_nic_dword(priv, INTA_MASK, mask);
 }
 
 static void rtl8192_irq_disable(struct net_device *dev)
@@ -2042,11 +2049,6 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
                RCR_AAP | ((u32)7<<RCR_MXDMA_OFFSET) |
                ((u32)7 << RCR_FIFO_OFFSET) | RCR_ONLYERLPKT;
 
-       priv->irq_mask =        (u32)(IMR_ROK | IMR_VODOK | IMR_VIDOK | IMR_BEDOK | IMR_BKDOK |
-                               IMR_HCCADOK | IMR_MGNTDOK | IMR_COMDOK | IMR_HIGHDOK |
-                               IMR_BDOK | IMR_RXCMDOK | IMR_TIMEOUT0 | IMR_RDU | IMR_RXFOVW |
-                               IMR_TXFOVW | IMR_BcnInt | IMR_TBDOK | IMR_TBDER);
-
        priv->pFirmware = vzalloc(sizeof(rt_firmware));
 
        /* rx related queue */