Skip to contentSkip to conversation

mmc: core: Fix typo at mmc_card_sleep

PATCH Applied Kyungmin Park 2 participants 2 messages Nov 17, 2011 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: core: Fix typo at mmc_card_sleep

From: Kyungmin Park <[email protected]>

Fix wrong bus_ops->sleep check.

---

drivers/mmc/core/core.c +1 -1
index 5278ffb..193e449 100644
@@ -2196,7 +2196,7 @@ int mmc_card_sleep(struct mmc_host *host)
 
 	mmc_bus_get(host);
 
-	if (host->bus_ops && !host->bus_dead && host->bus_ops->awake)
+	if (host->bus_ops && !host->bus_dead && host->bus_ops->sleep)
 		err = host->bus_ops->sleep(host);
 
 	mmc_bus_put(host);
Applied
#1 lore raw

Hi,

Quoted 12 lines · Kyungmin Park

From: Kyungmin Park <[email protected]>

Fix wrong bus_ops->sleep check.

---

drivers/mmc/core/core.c +0 -0
index 5278ffb..193e449 100644

drivers/mmc/core/core.c int mmc_card_sleep(struct mmc_host *host) · line 2202

Quoted 8 lines
drivers/mmc/core/core.c +1 -1
@@ -2196,7 +2196,7 @@ int mmc_card_sleep(struct mmc_host *host)
 
 	mmc_bus_get(host);
 
-	if (host->bus_ops && !host->bus_dead && host->bus_ops->awake)
+	if (host->bus_ops && !host->bus_dead && host->bus_ops->sleep)
 		err = host->bus_ops->sleep(host);
 
 	mmc_bus_put(host);

Thanks, applied to mmc-next for 3.2.

(My understanding is that this isn't going to have any real-world consequences, since the only bus that defines awake or sleep is core/mmc.c, and it defines both of them.)

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child