ath9k: fix module reload on ar713x based systems with ar92xx
[openwrt/openwrt.git] / package / mac80211 / patches / 570-ath9k_fix_module_reload.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);