b8fcc994b6df4681f353431312af1af4fc445f69
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 520-ath9k_pci_error_fix.patch
1 --- a/drivers/net/wireless/ath/ath9k/pci.c
2 +++ b/drivers/net/wireless/ath/ath9k/pci.c
3 @@ -255,6 +255,10 @@ static void ath_pci_remove(struct pci_de
4 struct ath_wiphy *aphy = hw->priv;
5 struct ath_softc *sc = aphy->sc;
6 void __iomem *mem = sc->mem;
7 + u16 val;
8 +
9 + /* Do a config read to clear pre-existing pci error status */
10 + pci_read_config_word(pdev, PCI_COMMAND, &val);
11
12 ath9k_deinit_device(sc);
13 free_irq(sc->irq, sc);