Skip to content

Commit

Permalink
wl1271: Removed duplicate code from module remove function.
Browse files Browse the repository at this point in the history
Removed duplicate code from wl1271_sdio module remove function. For
freeing stuff in the remove function wl1271_free_hw function is now
used.

Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Teemu Paasikivi authored and John W. Linville committed Mar 23, 2010
1 parent a3b8ea7 commit 801a673
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/net/wireless/wl12xx/wl1271_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,20 +248,9 @@ static void __devexit wl1271_remove(struct sdio_func *func)
{
struct wl1271 *wl = sdio_get_drvdata(func);

ieee80211_unregister_hw(wl->hw);

free_irq(wl->irq, wl);

kfree(wl->target_mem_map);
vfree(wl->fw);
wl->fw = NULL;
kfree(wl->nvs);
wl->nvs = NULL;

kfree(wl->fw_status);
kfree(wl->tx_res_if);

ieee80211_free_hw(wl->hw);
wl1271_free_hw(wl);
}

static struct sdio_driver wl1271_sdio_driver = {
Expand Down

0 comments on commit 801a673

Please sign in to comment.