ath5k: add missing ieee80211_free_hw() on unload in AHB code
authorPavel Roskin <proski@gnu.org>
Fri, 17 Jun 2011 21:59:02 +0000 (17:59 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 20 Jun 2011 19:34:19 +0000 (15:34 -0400)
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ahb.c

index ea99827..c38e9e8 100644 (file)
@@ -219,6 +219,7 @@ static int ath_ahb_remove(struct platform_device *pdev)
 
        ath5k_deinit_softc(sc);
        platform_set_drvdata(pdev, NULL);
+       ieee80211_free_hw(hw);
 
        return 0;
 }