]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Fix compilation failure when RFKILL is enabled
authorSujith <m.sujith@gmail.com>
Tue, 4 Nov 2008 12:55:27 +0000 (18:25 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Nov 2008 18:06:14 +0000 (13:06 -0500)
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c

index fb50aa0fc996a2539d4f65f608e3a3ecf97b13ef..f830fe1e4adcd1427c49371bad06356fdf30606a 100644 (file)
@@ -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)
 {
@@ -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;