From patchwork Thu Nov 10 05:06:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhao X-Patchwork-Id: 5022 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 611F923E51 for ; Thu, 10 Nov 2011 05:06:53 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 45DA4A181FD for ; Thu, 10 Nov 2011 05:06:53 +0000 (UTC) Received: by faan26 with SMTP id n26so3483503faa.11 for ; Wed, 09 Nov 2011 21:06:53 -0800 (PST) Received: by 10.152.112.10 with SMTP id im10mr3556224lab.2.1320901612987; Wed, 09 Nov 2011 21:06:52 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.196 with SMTP id e4cs8735lae; Wed, 9 Nov 2011 21:06:52 -0800 (PST) Received: by 10.52.88.109 with SMTP id bf13mr9961209vdb.86.1320901610032; Wed, 09 Nov 2011 21:06:50 -0800 (PST) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe004.messaging.microsoft.com. [216.32.181.184]) by mx.google.com with ESMTPS id l7si1669281vcv.64.2011.11.09.21.06.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Nov 2011 21:06:50 -0800 (PST) Received-SPF: neutral (google.com: 216.32.181.184 is neither permitted nor denied by best guess record for domain of richard.zhao@linaro.org) client-ip=216.32.181.184; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.184 is neither permitted nor denied by best guess record for domain of richard.zhao@linaro.org) smtp.mail=richard.zhao@linaro.org Received: from mail216-ch1-R.bigfish.com (10.43.68.241) by CH1EHSOBE016.bigfish.com (10.43.70.66) with Microsoft SMTP Server id 14.1.225.22; Thu, 10 Nov 2011 05:06:24 +0000 Received: from mail216-ch1 (localhost.localdomain [127.0.0.1]) by mail216-ch1-R.bigfish.com (Postfix) with ESMTP id 41DC41B50331; Thu, 10 Nov 2011 05:06:37 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail216-ch1 (localhost.localdomain [127.0.0.1]) by mail216-ch1 (MessageSwitch) id 13209015952528_26600; Thu, 10 Nov 2011 05:06:35 +0000 (UTC) Received: from CH1EHSMHS032.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.251]) by mail216-ch1.bigfish.com (Postfix) with ESMTP id EB6501C58054; Thu, 10 Nov 2011 05:06:34 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS032.bigfish.com (10.43.70.32) with Microsoft SMTP Server (TLS) id 14.1.225.22; Thu, 10 Nov 2011 05:06:44 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.339.2; Wed, 9 Nov 2011 23:06:43 -0600 Received: from b20223-02.ap.freescale.net (b20223-02.ap.freescale.net [10.192.242.124]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id pAA56dw8022474; Wed, 9 Nov 2011 23:06:40 -0600 (CST) From: Richard Zhao To: CC: , , , , , , Richard Zhao Subject: [PATCH 1/1] mmc: sdhci-esdhc-imx: convert to clk_prepare/clk_unprepare Date: Thu, 10 Nov 2011 13:06:29 +0800 Message-ID: <1320901589-13262-1-git-send-email-richard.zhao@linaro.org> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Signed-off-by: Richard Zhao --- drivers/mmc/host/sdhci-esdhc-imx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index ae57769..b37e5d4 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -462,6 +462,7 @@ static int __devinit sdhci_esdhc_imx_probe(struct platform_device *pdev) err = PTR_ERR(clk); goto err_clk_get; } + clk_prepare(clk); clk_enable(clk); pltfm_host->clk = clk; @@ -551,6 +552,7 @@ no_card_detect_irq: no_card_detect_pin: no_board_data: clk_disable(pltfm_host->clk); + clk_unprepare(pltfm_host->clk); clk_put(pltfm_host->clk); err_clk_get: kfree(imx_data); @@ -578,6 +580,7 @@ static int __devexit sdhci_esdhc_imx_remove(struct platform_device *pdev) } clk_disable(pltfm_host->clk); + clk_unprepare(pltfm_host->clk); clk_put(pltfm_host->clk); kfree(imx_data);