From: Pavel Roskin Date: Fri, 17 Jun 2011 21:59:02 +0000 (-0400) Subject: ath5k: add missing ieee80211_free_hw() on unload in AHB code X-Git-Tag: firefly_0821_release~3680^2~4429^2~12^2~42^2~394 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=536e5189ffdf17047f129f4730d947ab11a8526b;p=firefly-linux-kernel-4.4.55.git ath5k: add missing ieee80211_free_hw() on unload in AHB code Signed-off-by: Pavel Roskin Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c index ea9982781559..c38e9e848995 100644 --- a/drivers/net/wireless/ath/ath5k/ahb.c +++ b/drivers/net/wireless/ath/ath5k/ahb.c @@ -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; }