Commit 3ac38c3a authored by David S. Miller's avatar David S. Miller
parents eb37b41c 9757d556
...@@ -37,6 +37,8 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = { ...@@ -37,6 +37,8 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = {
{ 0 } { 0 }
}; };
static void ath_detach(struct ath_softc *sc);
static int ath_get_channel(struct ath_softc *sc, static int ath_get_channel(struct ath_softc *sc,
struct ieee80211_channel *chan) struct ieee80211_channel *chan)
{ {
...@@ -813,7 +815,7 @@ static int ath_start_rfkill_poll(struct ath_softc *sc) ...@@ -813,7 +815,7 @@ static int ath_start_rfkill_poll(struct ath_softc *sc)
pci_iounmap(sc->pdev, sc->mem); pci_iounmap(sc->pdev, sc->mem);
pci_release_region(sc->pdev, 0); pci_release_region(sc->pdev, 0);
pci_disable_device(sc->pdev); pci_disable_device(sc->pdev);
ieee80211_free_hw(hw); ieee80211_free_hw(sc->hw);
return -EIO; return -EIO;
} else { } else {
sc->sc_flags |= SC_OP_RFKILL_REGISTERED; sc->sc_flags |= SC_OP_RFKILL_REGISTERED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment