Skip to contentSkip to conversation

mmc: power off once at removal

PATCH In review [email protected] 1 participant 1 message Sep 23, 2009 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 49/232 mmc: power off once at removal

From: Denis Karpov <[email protected]>

Fix MMC host stop sequence: power off once.

Cc Ian Molton <[email protected]>
Cc "Roberto A. Foglietta" <[email protected]>
Cc Jarkko Lavinen <[email protected]>
Cc Denis Karpov <[email protected]>
Cc Pierre Ossman <[email protected]>
Cc Philip Langdale <[email protected]>
Cc "Madhusudhan" <[email protected]>

---

 drivers/mmc/core/core.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/mmc/core/core.c renamed from drivers/mmc/core/core.c~mmc-power-off-once-at-removal +2 -0
diff -puN drivers/mmc/core/core.c~mmc-power-off-once-at-removal drivers/mmc/core/core.c
@@ -1143,6 +1143,8 @@ void mmc_stop_host(struct mmc_host *host
 		mmc_claim_host(host);
 		mmc_detach_bus(host);
 		mmc_release_host(host);
+		mmc_bus_put(host);
+		return;
 	}
 	mmc_bus_put(host);
 

_