From patchwork Wed Jan 22 11:46:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 3522661 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9429DC02DC for ; Wed, 22 Jan 2014 11:46:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8173620138 for ; Wed, 22 Jan 2014 11:46:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 339362013D for ; Wed, 22 Jan 2014 11:46:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755233AbaAVLqN (ORCPT ); Wed, 22 Jan 2014 06:46:13 -0500 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4EeE22cqO39jKoKlZ7aXQj5F2WxElZ2OwISNyuIyewI=; b=CqqMDT9CLsMhOLEZLYv5LVMG98ulJ5TUrYYJbgMtQKodzKgjvvUfaF2gDXAmFVCgo0 MdyIBvYSopHO/99pgOFrCt2AyP4tEg8GwnE5mXjLEJl/dzZVCgQx5XOUVmouZoUiQAm2 u+2JI4RRlh8Udxm9jzF1ou1wHtZOBBA9w540Lvk3hCwww6M36EMk9z0SAUi/OkdToFz6 plbm+zHTJ2bD8Ky6lbIBiSwcNfxlk3S1jNUKzByNhAAQSEzjJedDQhpDZjVuBao0GJwd ZdiUEFcdNFG+gw3Ygn3WOYt/E295qMv5NZtkgT2adEOEP6Qnb2QqUsnrz3NVfhvLDXPA qYCg== X-Gm-Message-State: ALoCoQluv2LswQOppCumT0bI2dzip9+U43ve8kyW7QaeoPi/khsTYry7KFKo2enaZutez3BuOM+2 X-Received: by 10.181.5.65 with SMTP id ck1mr7554912wid.57.1390391170970; Wed, 22 Jan 2014 03:46:10 -0800 (PST) Received: from panicking.ipgroup.local (212-57-59-66.xdsl.deanconnect.nl. [212.57.59.66]) by mx.google.com with ESMTPSA id kr10sm14297368wjc.22.2014.01.22.03.46.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 03:46:10 -0800 (PST) From: Michael Trimarchi To: linux-mmc@vger.kernel.org Cc: Chris Ball , linux-kernel@vger.kernel.org, Sekhar Nori , Manjunathappa Prakash 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> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com> References: <1390391165-27906-1-git-send-email-michael@amarulasolutions.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)