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 ea99827815599e9028682de9b4c2276d2d7939f3..c38e9e8489953b3438dc96d940cefd89a5ce3377 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;
 }