From patchwork Sun Jun 9 19:10:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 2694691 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2EDAA3FC23 for ; Sun, 9 Jun 2013 19:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751489Ab3FITGz (ORCPT ); Sun, 9 Jun 2013 15:06:55 -0400 Received: from smtp-out-250.synserver.de ([212.40.185.250]:1062 "EHLO smtp-out-250.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404Ab3FITGz (ORCPT ); Sun, 9 Jun 2013 15:06:55 -0400 Received: (qmail 8996 invoked by uid 0); 9 Jun 2013 19:06:47 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@laprican.de X-SynServer-PPID: 8900 Received: from ppp-188-174-124-32.dynamic.mnet-online.de (HELO lars-laptop.fritz.box) [188.174.124.32] by 217.119.54.87 with SMTP; 9 Jun 2013 19:06:46 -0000 From: Lars-Peter Clausen To: Chris Ball Cc: Paul Cercueil , Maarten ter Huurne , linux-mmc@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH 1/6] mmc: jz4740: Use clk_prepare_enable/clk_disable_unprepare Date: Sun, 9 Jun 2013 21:10:00 +0200 Message-Id: <1370805005-8104-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.2.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org In preparation to switching the jz4740 clk driver to the common clk framework update the clk enable/disable calls to clk_prepare_enable/clk_disable_unprepare. Signed-off-by: Lars-Peter Clausen --- drivers/mmc/host/jz4740_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index 1c47b34..c4f3872 100644 --- a/drivers/mmc/host/jz4740_mmc.c +++ b/drivers/mmc/host/jz4740_mmc.c @@ -626,7 +626,7 @@ static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) gpio_set_value(host->pdata->gpio_power, !host->pdata->power_active_low); host->cmdat |= JZ_MMC_CMDAT_INIT; - clk_enable(host->clk); + clk_prepare_enable(host->clk); break; case MMC_POWER_ON: break; @@ -634,7 +634,7 @@ static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) if (gpio_is_valid(host->pdata->gpio_power)) gpio_set_value(host->pdata->gpio_power, host->pdata->power_active_low); - clk_disable(host->clk); + clk_disable_unprepare(host->clk); break; }