Skip to content

Commit

Permalink
ath6kl: unbreak suspend
Browse files Browse the repository at this point in the history
Add missing {}'s that caused ath6kl_sdio_suspend to always return -EINVAL
causing suspend to be aborted.

kvalo: I broke this in commit f7325b8 ("ath6kl: add sdio debug messages")

Signed-off-by: Sam Leffler <sleffler@chromium.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Sam Leffler authored and Kalle Valo committed Nov 11, 2011
1 parent bef26a7 commit 1738085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath6kl/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,12 +724,13 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar)

flags = sdio_get_host_pm_caps(func);

if (!(flags & MMC_PM_KEEP_POWER))
if (!(flags & MMC_PM_KEEP_POWER)) {
/* as host doesn't support keep power we need to bail out */
ath6kl_dbg(ATH6KL_DBG_SDIO,
"func %d doesn't support MMC_PM_KEEP_POWER\n",
func->num);
return -EINVAL;
}

ret = sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
if (ret) {
Expand Down

0 comments on commit 1738085

Please sign in to comment.