diff options
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index fb50aa0fc996..f830fe1e4adc 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -37,6 +37,8 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = { | |||
37 | { 0 } | 37 | { 0 } |
38 | }; | 38 | }; |
39 | 39 | ||
40 | static void ath_detach(struct ath_softc *sc); | ||
41 | |||
40 | static int ath_get_channel(struct ath_softc *sc, | 42 | static int ath_get_channel(struct ath_softc *sc, |
41 | struct ieee80211_channel *chan) | 43 | struct ieee80211_channel *chan) |
42 | { | 44 | { |
@@ -813,7 +815,7 @@ static int ath_start_rfkill_poll(struct ath_softc *sc) | |||
813 | pci_iounmap(sc->pdev, sc->mem); | 815 | pci_iounmap(sc->pdev, sc->mem); |
814 | pci_release_region(sc->pdev, 0); | 816 | pci_release_region(sc->pdev, 0); |
815 | pci_disable_device(sc->pdev); | 817 | pci_disable_device(sc->pdev); |
816 | ieee80211_free_hw(hw); | 818 | ieee80211_free_hw(sc->hw); |
817 | return -EIO; | 819 | return -EIO; |
818 | } else { | 820 | } else { |
819 | sc->sc_flags |= SC_OP_RFKILL_REGISTERED; | 821 | sc->sc_flags |= SC_OP_RFKILL_REGISTERED; |