Fixed two bugs causing problems when unloding wl1271 module. First was
missing sdio_set_drvdata call from the probe function, second was order
of function calls in the remove function.
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: John W. Linville <linville@tuxdriver.com>
goto out_irq;
sdio_claim_host(func);
+ sdio_set_drvdata(func, wl);
+
ret = sdio_enable_func(func);
if (ret)
goto out_release;
{
struct wl1271 *wl = sdio_get_drvdata(func);
+ ieee80211_unregister_hw(wl->hw);
+
sdio_claim_host(func);
sdio_disable_func(func);
sdio_release_host(func);
- ieee80211_unregister_hw(wl->hw);
free_irq(wl->irq, wl);