From: Michael Trimarchi Subject: [RFC PATCH 1/3] ARM: mmc: davinci: remove unused variable mmc_pclk and fix opendrain clock calculation Date: Wed, 22 Jan 2014 12:46:03 +0100 Message-ID: <1390391165-27906-2-git-send-email-michael@amarulasolutions.com> References: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com> Return-path: Received: from mail-wg0-f52.google.com ([74.125.82.52]:35866 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755050AbaAVLqM (ORCPT ); Wed, 22 Jan 2014 06:46:12 -0500 Received: by mail-wg0-f52.google.com with SMTP id b13so230625wgh.7 for ; Wed, 22 Jan 2014 03:46:11 -0800 (PST) In-Reply-To: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: linux-mmc@vger.kernel.org Cc: Chris Ball , linux-kernel@vger.kernel.org, Sekhar Nori , Manjunathappa Prakash Signed-off-by: Michael Trimarchi --- drivers/mmc/host/davinci_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index e9fa87d..8ea09ef 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -683,7 +683,7 @@ static unsigned int calculate_freq_for_card(struct mmc_davinci_host *host, static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios) { - unsigned int open_drain_freq = 0, mmc_pclk = 0; + unsigned int open_drain_freq = 0; unsigned int mmc_push_pull_freq = 0; struct mmc_davinci_host *host = mmc_priv(mmc); @@ -693,7 +693,7 @@ static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios) /* Ignoring the init clock value passed for fixing the inter * operability with different cards. */ - open_drain_freq = ((unsigned int)mmc_pclk + open_drain_freq = ((unsigned int)host->mmc_input_clk / (2 * MMCSD_INIT_CLOCK)) - 1; if (open_drain_freq > 0xFF) -- 1.8.1.2