Skip to content

Commit 3ac38c3

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
2 parents eb37b41 + 9757d55 commit 3ac38c3

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/wireless/ath9k

1 file changed

+3
-1
lines changed

drivers/net/wireless/ath9k/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ static struct pci_device_id ath_pci_id_table[] __devinitdata = {
3737
{ 0 }
3838
};
3939

40+
static void ath_detach(struct ath_softc *sc);
41+
4042
static int ath_get_channel(struct ath_softc *sc,
4143
struct ieee80211_channel *chan)
4244
{
@@ -813,7 +815,7 @@ static int ath_start_rfkill_poll(struct ath_softc *sc)
813815
pci_iounmap(sc->pdev, sc->mem);
814816
pci_release_region(sc->pdev, 0);
815817
pci_disable_device(sc->pdev);
816-
ieee80211_free_hw(hw);
818+
ieee80211_free_hw(sc->hw);
817819
return -EIO;
818820
} else {
819821
sc->sc_flags |= SC_OP_RFKILL_REGISTERED;

0 commit comments

Comments
 (0)