rtlwifi: rtl8192{ce,cu,se} Remove irq_enabled
This should be unnecessary if synchronize_irq is used. Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
80b69593a8
commit
f2e795ffae
@@ -380,13 +380,11 @@ void rtl92c_enable_interrupt(struct ieee80211_hw *hw)
|
||||
0xFFFFFFFF);
|
||||
rtl_write_dword(rtlpriv, REG_HIMRE, rtlpci->irq_mask[1] &
|
||||
0xFFFFFFFF);
|
||||
rtlpci->irq_enabled = true;
|
||||
} else {
|
||||
rtl_write_dword(rtlpriv, REG_HIMR, rtlusb->irq_mask[0] &
|
||||
0xFFFFFFFF);
|
||||
rtl_write_dword(rtlpriv, REG_HIMRE, rtlusb->irq_mask[1] &
|
||||
0xFFFFFFFF);
|
||||
rtlusb->irq_enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,16 +396,9 @@ void rtl92c_init_interrupt(struct ieee80211_hw *hw)
|
||||
void rtl92c_disable_interrupt(struct ieee80211_hw *hw)
|
||||
{
|
||||
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
||||
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
|
||||
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
|
||||
struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw));
|
||||
|
||||
rtl_write_dword(rtlpriv, REG_HIMR, IMR8190_DISABLED);
|
||||
rtl_write_dword(rtlpriv, REG_HIMRE, IMR8190_DISABLED);
|
||||
if (IS_HARDWARE_TYPE_8192CE(rtlhal))
|
||||
rtlpci->irq_enabled = false;
|
||||
else if (IS_HARDWARE_TYPE_8192CU(rtlhal))
|
||||
rtlusb->irq_enabled = false;
|
||||
}
|
||||
|
||||
void rtl92c_set_qos(struct ieee80211_hw *hw, int aci)
|
||||
|
Reference in New Issue
Block a user