1 --- a/drivers/net/wireless/rt2x00/rt2x00pci.c
2 +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
3 @@ -108,7 +108,9 @@ int rt2x00pci_probe(struct pci_dev *pci_
4 goto exit_release_regions;
8 pci_enable_msi(pci_dev);
11 hw = ieee80211_alloc_hw(sizeof(struct rt2x00_dev), ops->hw);
13 @@ -162,7 +164,9 @@ exit_free_device:
14 ieee80211_free_hw(hw);
17 +#ifdef CONFIG_PCI_SET_MWI
18 pci_disable_msi(pci_dev);
22 pci_release_regions(pci_dev);
23 @@ -188,7 +192,9 @@ void rt2x00pci_remove(struct pci_dev *pc
24 rt2x00pci_free_reg(rt2x00dev);
25 ieee80211_free_hw(hw);
27 +#ifdef CONFIG_PCI_MSI
28 pci_disable_msi(pci_dev);
32 * Free the PCI device data.