From: Jaehoon Chung Date: Wed, 11 May 2011 06:52:39 +0000 (+0900) Subject: mmc: dw_mmc: fixed wrong regulator_enable in suspend/resume X-Git-Tag: v3.0-rc1~148^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d6c4e0a00399de9de3f066de175eb5fcc4b7b46;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git mmc: dw_mmc: fixed wrong regulator_enable in suspend/resume regulator_enable() was incorrectly placed in the suspend function instead of the resume function. Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park Acked-by: Will Newton Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 87e1f57..66dcddb 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1769,9 +1769,6 @@ static int dw_mci_suspend(struct platform_device *pdev, pm_message_t mesg) int i, ret; struct dw_mci *host = platform_get_drvdata(pdev); - if (host->vmmc) - regulator_enable(host->vmmc); - for (i = 0; i < host->num_slots; i++) { struct dw_mci_slot *slot = host->slot[i]; if (!slot) @@ -1798,6 +1795,9 @@ static int dw_mci_resume(struct platform_device *pdev) int i, ret; struct dw_mci *host = platform_get_drvdata(pdev); + if (host->vmmc) + regulator_enable(host->vmmc); + if (host->dma_ops->init) host->dma_ops->init(host);