From: Denis Karpov Date: Tue, 22 Sep 2009 23:44:36 +0000 (-0700) Subject: mmc: power off once at removal X-Git-Tag: v4.14-rc1~21946 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53509f0fe28e049e772897aa8fa1f5183b6823a2;p=platform%2Fkernel%2Flinux-rpi.git mmc: power off once at removal Fix MMC host stop sequence: power off once. Signed-off-by: Denis Karpov Signed-off-by: Adrian Hunter Acked-by: Matt Fleming Cc: Ian Molton Cc: "Roberto A. Foglietta" Cc: Jarkko Lavinen Cc: Denis Karpov Cc: Pierre Ossman Cc: Philip Langdale Cc: "Madhusudhan" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 828e60ea528c..0842f6829250 100644 --- a/drivers/mmc/core/core.c +++ b/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);