ath5k: add missing iounmap to AHB probe removal
authorJonathan Bither <jonbither@gmail.com>
Tue, 24 Apr 2012 09:20:15 +0000 (05:20 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 19:24:07 +0000 (15:24 -0400)
When our driver device is removed on the AHB bus, our IO memory is never unmapped.

Signed-off-by: Jonathan Bither <jonbither@gmail.com>
Reviewed-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ahb.c

index 8c50d9d19d786e5f0e28ef78bed157455cfcf705..aec33cc207fdbba47e67a6aa28a52ac19f4bfede 100644 (file)
@@ -220,6 +220,7 @@ static int ath_ahb_remove(struct platform_device *pdev)
        }
 
        ath5k_deinit_ah(ah);
+       iounmap(ah->iobase);
        platform_set_drvdata(pdev, NULL);
        ieee80211_free_hw(hw);