Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256333
b: refs/heads/master
c: b5d6e5f
h: refs/heads/master
i:
  256331: 1999483
v: v3
  • Loading branch information
Ohad Ben-Cohen authored and Luciano Coelho committed Jul 5, 2011
1 parent 3a9dbf1 commit 52e254c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 708bb3cf58a9bc90f3171ba64f30601f690e5aaa
refs/heads/master: b5d6e5f66304bddc2b5bc7222e993dfeb629ef0c
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/wl12xx/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ static int wl1271_sdio_power_on(struct wl1271 *wl)
ret = pm_runtime_get_sync(&func->dev);
if (ret)
goto out;
} else {
/* Runtime PM is disabled: power up the card manually */
ret = mmc_power_restore_host(func->card->host);
if (ret < 0)
goto out;
}

/* Runtime PM might be disabled, so power up the card manually */
ret = mmc_power_restore_host(func->card->host);
if (ret < 0)
goto out;

sdio_claim_host(func);
sdio_enable_func(func);

Expand All @@ -188,7 +188,7 @@ static int wl1271_sdio_power_off(struct wl1271 *wl)
sdio_disable_func(func);
sdio_release_host(func);

/* Runtime PM might be disabled, so power off the card manually */
/* Power off the card manually, even if runtime PM is enabled. */
ret = mmc_power_save_host(func->card->host);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 52e254c

Please sign in to comment.