From patchwork Tue Apr 5 08:02:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 686291 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3583svL006364 for ; Tue, 5 Apr 2011 08:04:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752470Ab1DEIDy (ORCPT ); Tue, 5 Apr 2011 04:03:54 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:17453 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752553Ab1DEIDw (ORCPT ); Tue, 5 Apr 2011 04:03:52 -0400 Received: from epmmp2 (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LJ6004NT6ECVED0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Apr 2011 17:03:48 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LJ6007N76ECWM@mmp2.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Apr 2011 17:03:48 +0900 (KST) Received: from [165.213.219.108] ([165.213.219.108]) by TNRNDGASPAPP1.tn.corp.samsungelectronics.net with Microsoft SMTPSVC(6.0.3790.4675); Tue, 05 Apr 2011 17:03:48 +0900 Date: Tue, 05 Apr 2011 17:02:20 +0900 From: Jaehoon Chung Subject: [PATCH v3 2/2] mmc: sdhci: add regulator disable/put when control error To: "linux-mmc@vger.kernel.org" Cc: Chris Ball , Wolfram Sang , Kyungmin Park Message-id: <4D9ACC8C.2000202@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 2.0.0.24 (X11/20100317) X-OriginalArrivalTime: 05 Apr 2011 08:03:48.0212 (UTC) FILETIME=[FE32E340:01CBF367] Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 05 Apr 2011 08:04:14 +0000 (UTC) Missing regulator disable/put. Fixed them. Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park --- drivers/mmc/host/sdhci.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1768ffb..35edcc1 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2048,6 +2048,10 @@ reset: sdhci_reset(host, SDHCI_RESET_ALL); free_irq(host->irq, host); del_timer_sync(&host->timer); + if (host->vmmc) { + regulator_disable(host->vmmc); + regulator_put(host->vmmc); + } untasklet: tasklet_kill(&host->card_tasklet);