Skip to content

Commit

Permalink
ath9k: Fix compilation failure when RFKILL is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Sujith <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Sujith authored and linvjw committed Nov 11, 2008
1 parent fb28ad3 commit 9757d55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = {
{ 0 }
};

static void ath_detach(struct ath_softc *sc);

static int ath_get_channel(struct ath_softc *sc,
struct ieee80211_channel *chan)
{
Expand Down Expand Up @@ -813,7 +815,7 @@ static int ath_start_rfkill_poll(struct ath_softc *sc)
pci_iounmap(sc->pdev, sc->mem);
pci_release_region(sc->pdev, 0);
pci_disable_device(sc->pdev);
ieee80211_free_hw(hw);
ieee80211_free_hw(sc->hw);
return -EIO;
} else {
sc->sc_flags |= SC_OP_RFKILL_REGISTERED;
Expand Down

0 comments on commit 9757d55

Please sign in to comment.