Message ID | 5437e685-8fb5-45f4-a78e-9aa961f5adf7@web.de (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Jeff Johnson |
Headers | show |
Series | ath6kl: Adjustments for ath6kl_sdio_power_on() | expand |
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index 9ab091044706..5106c6909dc8 100644 --- a/drivers/net/wireless/ath/ath6kl/sdio.c +++ b/drivers/net/wireless/ath/ath6kl/sdio.c @@ -514,14 +514,12 @@ static int ath6kl_sdio_power_on(struct ath6kl *ar) sdio_claim_host(func); ret = sdio_enable_func(func); + sdio_release_host(func); if (ret) { ath6kl_err("Unable to enable sdio func: %d)\n", ret); - sdio_release_host(func); return ret; } - sdio_release_host(func); - /* * Wait for hardware to initialise. It should take a lot less than * 10 ms but let's be conservative here.