Skip to contentSkip to conversation

ath6kl: unbreak suspend

PATCH Applied Kalle Valo 1 participant 2 messages Oct 12, 2011 – Oct 13, 2011 Atheros ATH6KL wireless driver

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

PATCH 1/1 ath6kl: unbreak suspend

From: Sam Leffler <[email protected]>

Add missing {}'s that caused ath6kl_sdio_suspend to always return -EINVAL causing suspend to be aborted.

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

---
 drivers/net/wireless/ath/ath6kl/sdio.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath6kl/sdio.c +2 -1
index 2394c17..58e31f6 100644
@@ -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) {
author Applied
#1 lore raw
Quoted 6 lines · Kalle Valo

From: Sam Leffler <[email protected]>

Add missing {}'s that caused ath6kl_sdio_suspend to always return -EINVAL causing suspend to be aborted.

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

Applied. Thanks Sam.

Kalle